Inheritance: PartyElement
コード例 #1
0
ファイル: Person.cs プロジェクト: gwupe/Gwupe
 public void InitPerson(UserElement userElement)
 {
     InitParty(userElement);
     SubscriptionStatus = userElement.subscriptionStatus;
     SubscriptionType = userElement.subscriptionType;
     Guest = userElement.guest;
 }
コード例 #2
0
ファイル: Attendance.cs プロジェクト: gwupe/Gwupe
 internal Attendance(UserElement element)
     : this(new Person(element))
 {
 }
コード例 #3
0
ファイル: Person.cs プロジェクト: gwupe/Gwupe
 public Person(UserElement userElement)
 {
     InitPerson(userElement);
 }
コード例 #4
0
ファイル: CurrentUserManager.cs プロジェクト: gwupe/Gwupe
 internal void SetUser(UserElement userElement, String shortCode)
 {
     CurrentUser = new Person(userElement);
     ActiveShortCode = shortCode;
     if(CurrentUserPresence == null)
     {
         CurrentUserPresence = new Presence();
     }
     CurrentUserPresence.SetIdleState(_appContext.IdleState);
     UpdatePresence(true);
     OnCurrentUserChanged(EventArgs.Empty);
 }