public void send_recordRatings(string key, long userId, long itemId, long rating) #endif { oprot_.WriteMessageBegin(new TMessage("recordRatings", TMessageType.Call, seqid_)); recordRatings_args args = new recordRatings_args(); args.Key = key; args.UserId = userId; args.ItemId = itemId; args.Rating = rating; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void recordRatings_Process(int seqid, TProtocol iprot, TProtocol oprot) { recordRatings_args args = new recordRatings_args(); args.Read(iprot); iprot.ReadMessageEnd(); recordRatings_result result = new recordRatings_result(); iface_.recordRatings(args.Key, args.UserId, args.ItemId, args.Rating); oprot.WriteMessageBegin(new TMessage("recordRatings", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }