forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserProfile.cs
More file actions
99 lines (99 loc) · 1.68 KB
/
Copy pathUserProfile.cs
File metadata and controls
99 lines (99 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
using System;
namespace UnityEngine.SocialPlatforms.Impl
{
public class UserProfile : IUserProfile
{
protected string m_UserName;
protected string m_ID;
protected bool m_IsFriend;
protected UserState m_State;
protected Texture2D m_Image;
public string userName
{
get
{
return this.m_UserName;
}
}
public string id
{
get
{
return this.m_ID;
}
}
public bool isFriend
{
get
{
return this.m_IsFriend;
}
}
public UserState state
{
get
{
return this.m_State;
}
}
public Texture2D image
{
get
{
return this.m_Image;
}
}
public UserProfile()
{
this.m_UserName = "Uninitialized";
this.m_ID = "0";
this.m_IsFriend = false;
this.m_State = UserState.Offline;
this.m_Image = new Texture2D(32, 32);
}
public UserProfile(string name, string id, bool friend) : this(name, id, friend, UserState.Offline, new Texture2D(0, 0))
{
}
public UserProfile(string name, string id, bool friend, UserState state, Texture2D image)
{
this.m_UserName = name;
this.m_ID = id;
this.m_IsFriend = friend;
this.m_State = state;
this.m_Image = image;
}
public override string ToString()
{
return string.Concat(new object[]
{
this.id,
" - ",
this.userName,
" - ",
this.isFriend,
" - ",
this.state
});
}
public void SetUserName(string name)
{
this.m_UserName = name;
}
public void SetUserID(string id)
{
this.m_ID = id;
}
public void SetImage(Texture2D image)
{
this.m_Image = image;
}
public void SetIsFriend(bool value)
{
this.m_IsFriend = value;
}
public void SetState(UserState state)
{
this.m_State = state;
}
}
}