Exemplo n.º 1
0
 public void updateTemplate_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   updateTemplate_args args = new updateTemplate_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   updateTemplate_result result = new updateTemplate_result();
   iface_.updateTemplate(args.Username, args.PrimaryKey, args.Title, args.Description, args.Image, args.Video, args.ItemTypes, args.DisplayItems, args.MaxRatingVal, args.NumRecs, args.RecommenderName, args.ClientKey, args.Homepage, args.CreatorName, args.RepoName, args.TableName, args.RatingsColumn);
   oprot.WriteMessageBegin(new TMessage("updateTemplate", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Exemplo n.º 2
0
 public void send_updateTemplate(string username, string primaryKey, string title, string description, string image, string video, Dictionary<string, string> itemTypes, List<string> displayItems, long maxRatingVal, long numRecs, string recommenderName, string clientKey, string homepage, string creatorName, string repoName, string tableName, string ratingsColumn)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("updateTemplate", TMessageType.Call, seqid_));
   updateTemplate_args args = new updateTemplate_args();
   args.Username = username;
   args.PrimaryKey = primaryKey;
   args.Title = title;
   args.Description = description;
   args.Image = image;
   args.Video = video;
   args.ItemTypes = itemTypes;
   args.DisplayItems = displayItems;
   args.MaxRatingVal = maxRatingVal;
   args.NumRecs = numRecs;
   args.RecommenderName = recommenderName;
   args.ClientKey = clientKey;
   args.Homepage = homepage;
   args.CreatorName = creatorName;
   args.RepoName = repoName;
   args.TableName = tableName;
   args.RatingsColumn = ratingsColumn;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }