예제 #1
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags           = StreamingUtils.readInt(stream);
     this.peer            = StreamingUtils.readTLObject(stream, context);
     this.topMessage      = StreamingUtils.readInt(stream);
     this.readInboxMaxId  = StreamingUtils.readInt(stream);
     this.readOutboxMaxId = StreamingUtils.readInt(stream);
     this.unreadCount     = StreamingUtils.readInt(stream);
     this.notifySettings  = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 1) != 0)
     {
         this.pts = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 2) != 0)
     {
         this.draft = StreamingUtils.readTLObject(stream, context);
     }
 }
예제 #2
0
파일: TLUserFull.cs 프로젝트: hnjm/tgsharp
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     this.user  = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 2) != 0)
     {
         this.about = StreamingUtils.readTLString(stream);
     }
     this.link = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 4) != 0)
     {
         this.profilePhoto = StreamingUtils.readTLObject(stream, context);
     }
     this.notifySettings = StreamingUtils.readTLObject(stream, context);
     if ((this.flags & 8) != 0)
     {
         this.botInfo = StreamingUtils.readTLObject(stream, context);
     }
     this.commonChatsCount = StreamingUtils.readInt(stream);
 }
예제 #3
0
 public override void DeserializeResponse(BinaryReader br)
 {
     this.Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
 }
예제 #4
0
 public virtual void setNotifySettings(TLAbsPeerNotifySettings notifySettings)
 {
     this.notifySettings = notifySettings;
 }
예제 #5
0
 public override void deserializeResponse(BinaryReader br)
 {
     Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
 }
예제 #6
0
 public override void DeserializeBody(BinaryReader br)
 {
     Peer           = (TLAbsNotifyPeer)ObjectUtils.DeserializeObject(br);
     NotifySettings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
 }
예제 #7
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.peer           = StreamingUtils.readTLObject(stream, context);
     this.notifySettings = StreamingUtils.readTLObject(stream, context);
 }