Beispiel #1
0
     public StorageResult get(com.imd.doc.thrift.Source source, string id, FileType fileType)
     {
 #if !SILVERLIGHT
         send_get(source, id, fileType);
         return(recv_get());
 #else
         var asyncResult = Begin_get(null, null, source, id, fileType);
         return(End_get(asyncResult));
 #endif
     }
Beispiel #2
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 #3
0
     public DownloaderResult download(com.imd.doc.thrift.Source source, string id)
     {
 #if !SILVERLIGHT
         send_download(source, id);
         return(recv_download());
 #else
         var asyncResult = Begin_download(null, null, source, id);
         return(End_download(asyncResult));
 #endif
     }
Beispiel #4
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 #5
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 #6
0
            public void send_download(com.imd.doc.thrift.Source source, string id)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("download", TMessageType.Call, seqid_));
                download_args args = new download_args();

                args.Source = source;
                args.Id     = id;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Beispiel #7
0
            public void send_get(com.imd.doc.thrift.Source source, string id, FileType fileType)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("get", TMessageType.Call, seqid_));
                get_args args = new get_args();

                args.Source   = source;
                args.Id       = id;
                args.FileType = fileType;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Beispiel #8
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 #9
0
 public IAsyncResult send_get(AsyncCallback callback, object state, com.imd.doc.thrift.Source source, string id, FileType fileType)
Beispiel #10
0
 public IAsyncResult Begin_get(AsyncCallback callback, object state, com.imd.doc.thrift.Source source, string id, FileType fileType)
 {
     return(send_get(callback, state, source, id, fileType));
 }
Beispiel #11
0
 public DownloaderResult(com.imd.doc.thrift.Status status, com.imd.doc.thrift.Source source, string id) : this()
 {
     this.Status = status;
     this.Source = source;
     this.Id     = id;
 }
Beispiel #12
0
 public IAsyncResult send_download(AsyncCallback callback, object state, com.imd.doc.thrift.Source source, string id)
Beispiel #13
0
 public IAsyncResult Begin_download(AsyncCallback callback, object state, com.imd.doc.thrift.Source source, string id)
 {
     return(send_download(callback, state, source, id));
 }
Beispiel #14
0
 public IAsyncResult send_create(AsyncCallback callback, object state, com.imd.doc.thrift.Language language, com.imd.doc.thrift.Source source, PageType pageType)
Beispiel #15
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));
 }