Esempio n. 1
0
 public Protocol.SeatInfo GetInfo()
 {
     Protocol.SeatInfo result= new Protocol.SeatInfo { Index = Index, UserID = User != null ? User.ID : null, UserName = User != null?User.Name:null, Use= User!=null };
     if (User != null)
         result.Host = User.Session.Channel.EndPoint.ToString();
     return result;
 }
Esempio n. 2
0
 public void FromSeatInfo(Protocol.SeatInfo seat)
 {
     Index    = seat.Index;
     Use      = seat.Use;
     UserID   = seat.UserID;
     Host     = seat.Host;
     UserName = seat.UserName;
 }
Esempio n. 3
0
 public Protocol.SeatInfo GetInfo()
 {
     Protocol.SeatInfo result = new Protocol.SeatInfo {
         Index = Index, UserID = User != null ? User.ID : null, UserName = User != null?User.Name:null, Use = User != null
     };
     if (User != null)
     {
         result.Host = User.Session.Channel.EndPoint.ToString();
     }
     return(result);
 }