コード例 #1
0
ファイル: TalkService.cs プロジェクト: Banandana/LineSharp
 public void send_reportRooms(long syncOpRevision, List<Room> rooms)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("reportRooms", TMessageType.Call, seqid_));
   reportRooms_args args = new reportRooms_args();
   args.SyncOpRevision = syncOpRevision;
   args.Rooms = rooms;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
コード例 #2
0
ファイル: TalkService.cs プロジェクト: Banandana/LineSharp
 public void reportRooms_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   reportRooms_args args = new reportRooms_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   reportRooms_result result = new reportRooms_result();
   try {
     iface_.reportRooms(args.SyncOpRevision, args.Rooms);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("reportRooms", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }