示例#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
     }
示例#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;
 }
示例#3
0
文件: Info.cs 项目: Cloudxtreme/doc-2
 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;
 }
示例#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;
 }
示例#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
            }
示例#6
0
 public IAsyncResult send_create(AsyncCallback callback, object state, com.imd.doc.thrift.Language language, com.imd.doc.thrift.Source source, PageType pageType)
示例#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));
 }