예제 #1
0
 public void getSettingForMobile_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getSettingForMobile_args args = new getSettingForMobile_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getSettingForMobile_result result = new getSettingForMobile_result();
   try {
     result.Success = iface_.getSettingForMobile(args.UserId, args.Visibility, args.SettingId, args.Session);
   } catch (SettingServiceException ex) {
     result.Ex = ex;
   } catch (SessionException se) {
     result.Se = se;
   }
   oprot.WriteMessageBegin(new TMessage("getSettingForMobile", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
예제 #2
0
 public void send_getSettingForMobile(int userId, int visibility, int settingId, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("getSettingForMobile", TMessageType.Call, seqid_));
   getSettingForMobile_args args = new getSettingForMobile_args();
   args.UserId = userId;
   args.Visibility = visibility;
   args.SettingId = settingId;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }