コード例 #1
0
ファイル: TalkService.cs プロジェクト: Banandana/LineSharp
 public void send_removeMessage(string messageId)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("removeMessage", TMessageType.Call, seqid_));
   removeMessage_args args = new removeMessage_args();
   args.MessageId = messageId;
   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 removeMessage_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   removeMessage_args args = new removeMessage_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   removeMessage_result result = new removeMessage_result();
   try {
     result.Success = iface_.removeMessage(args.MessageId);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("removeMessage", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }