public void getFriendShipStatus_Process(int seqid, TProtocol iprot, TProtocol oprot) { getFriendShipStatus_args args = new getFriendShipStatus_args(); args.Read(iprot); iprot.ReadMessageEnd(); getFriendShipStatus_result result = new getFriendShipStatus_result(); try { result.Success = iface_.getFriendShipStatus(args.UserId, args.FriendId, args.Session); } catch (UserException ex) { result.Ex = ex; } catch (SessionException se) { result.Se = se; } oprot.WriteMessageBegin(new TMessage("getFriendShipStatus", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_getFriendShipStatus(int userId, int friendId, Session session) #endif { oprot_.WriteMessageBegin(new TMessage("getFriendShipStatus", TMessageType.Call, seqid_)); getFriendShipStatus_args args = new getFriendShipStatus_args(); args.UserId = userId; args.FriendId = friendId; args.Session = session; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }