136 lines
3.1 KiB
C#
136 lines
3.1 KiB
C#
using System;
|
|
|
|
namespace UnityEngine.SocialPlatforms.Impl
|
|
{
|
|
// Token: 0x0200037E RID: 894
|
|
public class UserProfile : IUserProfile
|
|
{
|
|
// Token: 0x06003595 RID: 13717 RVA: 0x00059ADC File Offset: 0x00057CDC
|
|
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);
|
|
}
|
|
|
|
// Token: 0x06003596 RID: 13718 RVA: 0x00059B18 File Offset: 0x00057D18
|
|
public UserProfile(string name, string id, bool friend)
|
|
: this(name, id, friend, UserState.Offline, new Texture2D(0, 0))
|
|
{
|
|
}
|
|
|
|
// Token: 0x06003597 RID: 13719 RVA: 0x00059B2C File Offset: 0x00057D2C
|
|
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;
|
|
}
|
|
|
|
// Token: 0x06003598 RID: 13720 RVA: 0x00059B5C File Offset: 0x00057D5C
|
|
public override string ToString()
|
|
{
|
|
return string.Concat(new object[] { this.id, " - ", this.userName, " - ", this.isFriend, " - ", this.state });
|
|
}
|
|
|
|
// Token: 0x06003599 RID: 13721 RVA: 0x00059BC4 File Offset: 0x00057DC4
|
|
public void SetUserName(string name)
|
|
{
|
|
this.m_UserName = name;
|
|
}
|
|
|
|
// Token: 0x0600359A RID: 13722 RVA: 0x00059BD0 File Offset: 0x00057DD0
|
|
public void SetUserID(string id)
|
|
{
|
|
this.m_ID = id;
|
|
}
|
|
|
|
// Token: 0x0600359B RID: 13723 RVA: 0x00059BDC File Offset: 0x00057DDC
|
|
public void SetImage(Texture2D image)
|
|
{
|
|
this.m_Image = image;
|
|
}
|
|
|
|
// Token: 0x0600359C RID: 13724 RVA: 0x00059BE8 File Offset: 0x00057DE8
|
|
public void SetIsFriend(bool value)
|
|
{
|
|
this.m_IsFriend = value;
|
|
}
|
|
|
|
// Token: 0x0600359D RID: 13725 RVA: 0x00059BF4 File Offset: 0x00057DF4
|
|
public void SetState(UserState state)
|
|
{
|
|
this.m_State = state;
|
|
}
|
|
|
|
// Token: 0x17000C4A RID: 3146
|
|
// (get) Token: 0x0600359E RID: 13726 RVA: 0x00059C00 File Offset: 0x00057E00
|
|
public string userName
|
|
{
|
|
get
|
|
{
|
|
return this.m_UserName;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000C4B RID: 3147
|
|
// (get) Token: 0x0600359F RID: 13727 RVA: 0x00059C1C File Offset: 0x00057E1C
|
|
public string id
|
|
{
|
|
get
|
|
{
|
|
return this.m_ID;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000C4C RID: 3148
|
|
// (get) Token: 0x060035A0 RID: 13728 RVA: 0x00059C38 File Offset: 0x00057E38
|
|
public bool isFriend
|
|
{
|
|
get
|
|
{
|
|
return this.m_IsFriend;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000C4D RID: 3149
|
|
// (get) Token: 0x060035A1 RID: 13729 RVA: 0x00059C54 File Offset: 0x00057E54
|
|
public UserState state
|
|
{
|
|
get
|
|
{
|
|
return this.m_State;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000C4E RID: 3150
|
|
// (get) Token: 0x060035A2 RID: 13730 RVA: 0x00059C70 File Offset: 0x00057E70
|
|
public Texture2D image
|
|
{
|
|
get
|
|
{
|
|
return this.m_Image;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000BFA RID: 3066
|
|
protected string m_UserName;
|
|
|
|
// Token: 0x04000BFB RID: 3067
|
|
protected string m_ID;
|
|
|
|
// Token: 0x04000BFC RID: 3068
|
|
protected bool m_IsFriend;
|
|
|
|
// Token: 0x04000BFD RID: 3069
|
|
protected UserState m_State;
|
|
|
|
// Token: 0x04000BFE RID: 3070
|
|
protected Texture2D m_Image;
|
|
}
|
|
}
|