コード例 #1
0
 public void send_findRelated(string authenticationToken, RelatedQuery query, RelatedResultSpec resultSpec)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("findRelated", TMessageType.Call, seqid_));
   findRelated_args args = new findRelated_args();
   args.AuthenticationToken = authenticationToken;
   args.Query = query;
   args.ResultSpec = resultSpec;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT || NETFX_CORE
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
コード例 #2
0
 public IAsyncResult send_findRelated(AsyncCallback callback, object state, string authenticationToken, RelatedQuery query, RelatedResultSpec resultSpec)
コード例 #3
0
      public RelatedResult findRelated(string authenticationToken, RelatedQuery query, RelatedResultSpec resultSpec)
      {
        #if !SILVERLIGHT && !NETFX_CORE
        send_findRelated(authenticationToken, query, resultSpec);
        return recv_findRelated();

        #else
        var asyncResult = Begin_findRelated(null, null, authenticationToken, query, resultSpec);
        return End_findRelated(asyncResult);

        #endif
      }
コード例 #4
0
 public IAsyncResult Begin_findRelated(AsyncCallback callback, object state, string authenticationToken, RelatedQuery query, RelatedResultSpec resultSpec)
 {
   return send_findRelated(callback, state, authenticationToken, query, resultSpec);
 }
コード例 #5
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.String) {
           AuthenticationToken = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Query = new RelatedQuery();
           Query.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.Struct) {
           ResultSpec = new RelatedResultSpec();
           ResultSpec.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
			/////---------------------------------------------------------------------------------------
			///// @name NoteStore notes methods
			/////---------------------------------------------------------------------------------------

			///** Identify related entities on the service, such as notes, notebooks, and tags related to notes or content.

			// @param  query The information about which we are finding related entities.
			// @param  resultSpec Allows the client to indicate the type and quantity of information to be returned, allowing a saving of time and bandwidth.
			// */
			public RelatedResult FindRelated(RelatedQuery query, RelatedResultSpec resultSpec)
			{
				return Client.findRelated(AuthenticationToken(), query, resultSpec);
			}