public void send_registerWithSnsId(SnsIdType snsIdType, string snsAccessToken, string region, string udidHash, DeviceInfo deviceInfo, string mid) #endif { oprot_.WriteMessageBegin(new TMessage("registerWithSnsId", TMessageType.Call, seqid_)); registerWithSnsId_args args = new registerWithSnsId_args(); args.SnsIdType = snsIdType; args.SnsAccessToken = snsAccessToken; args.Region = region; args.UdidHash = udidHash; args.DeviceInfo = deviceInfo; args.Mid = mid; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void registerWithSnsId_Process(int seqid, TProtocol iprot, TProtocol oprot) { registerWithSnsId_args args = new registerWithSnsId_args(); args.Read(iprot); iprot.ReadMessageEnd(); registerWithSnsId_result result = new registerWithSnsId_result(); try { result.Success = iface_.registerWithSnsId(args.SnsIdType, args.SnsAccessToken, args.Region, args.UdidHash, args.DeviceInfo, args.Mid); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("registerWithSnsId", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }