public void send_addSnsId(SnsIdType snsIdType, string snsAccessToken) #endif { oprot_.WriteMessageBegin(new TMessage("addSnsId", TMessageType.Call, seqid_)); addSnsId_args args = new addSnsId_args(); args.SnsIdType = snsIdType; args.SnsAccessToken = snsAccessToken; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void addSnsId_Process(int seqid, TProtocol iprot, TProtocol oprot) { addSnsId_args args = new addSnsId_args(); args.Read(iprot); iprot.ReadMessageEnd(); addSnsId_result result = new addSnsId_result(); try { result.Success = iface_.addSnsId(args.SnsIdType, args.SnsAccessToken); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("addSnsId", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }