Beispiel #1
0
     public void create(com.imd.doc.thrift.Language language, com.imd.doc.thrift.Source source, PageType pageType)
     {
 #if !SILVERLIGHT
         send_create(language, source, pageType);
         recv_create();
 #else
         var asyncResult = Begin_create(null, null, language, source, pageType);
         End_create(asyncResult);
 #endif
     }
Beispiel #2
0
 public File(com.imd.doc.thrift.Language language, com.imd.doc.thrift.Source source, string id, byte[] stream, long length, string contentType, FileType fileType, long createTime) : this()
 {
     this.Language    = language;
     this.Source      = source;
     this.Id          = id;
     this.Stream      = stream;
     this.Length      = length;
     this.ContentType = contentType;
     this.FileType    = fileType;
     this.CreateTime  = createTime;
 }
Beispiel #3
0
 public Info(string id, com.imd.doc.thrift.Language database, com.imd.doc.thrift.Source source, string journal, string issue, string volume, string title, string pagination, string language, long pubDate) : this()
 {
     this.Id         = id;
     this.Database   = database;
     this.Source     = source;
     this.Journal    = journal;
     this.Issue      = issue;
     this.Volume     = volume;
     this.Title      = title;
     this.Pagination = pagination;
     this.Language   = language;
     this.PubDate    = pubDate;
 }
Beispiel #4
0
 public Search()
 {
     this._stype            = SearchType.SIMPLE;
     this.__isset.stype     = true;
     this._language         = com.imd.doc.thrift.Language.CHINESE;
     this.__isset.language  = true;
     this._page             = 1;
     this.__isset.page      = true;
     this._size             = 20;
     this.__isset.size      = true;
     this._highlight        = false;
     this.__isset.highlight = true;
 }
Beispiel #5
0
            public void send_create(com.imd.doc.thrift.Language language, com.imd.doc.thrift.Source source, PageType pageType)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("create", TMessageType.Call, seqid_));
                create_args args = new create_args();

                args.Language = language;
                args.Source   = source;
                args.PageType = pageType;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Beispiel #6
0
 public IAsyncResult send_create(AsyncCallback callback, object state, com.imd.doc.thrift.Language language, com.imd.doc.thrift.Source source, PageType pageType)
Beispiel #7
0
 public IAsyncResult Begin_create(AsyncCallback callback, object state, com.imd.doc.thrift.Language language, com.imd.doc.thrift.Source source, PageType pageType)
 {
     return(send_create(callback, state, language, source, pageType));
 }