示例#1
0
 public void createNewCategory_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   createNewCategory_args args = new createNewCategory_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   createNewCategory_result result = new createNewCategory_result();
   try {
     result.Success = iface_.createNewCategory(args.UserCategory, args.FriendIDs, args.Session);
   } catch (UserException ex) {
     result.Ex = ex;
   } catch (SessionException se) {
     result.Se = se;
   }
   oprot.WriteMessageBegin(new TMessage("createNewCategory", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
示例#2
0
 public void send_createNewCategory(UserCategory userCategory, string friendIDs, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("createNewCategory", TMessageType.Call, seqid_));
   createNewCategory_args args = new createNewCategory_args();
   args.UserCategory = userCategory;
   args.FriendIDs = friendIDs;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }