Пример #1
0
        public OneSpanSign.API.AttachmentFile ToApiAttachmentFile()
        {
            if (sdkAttachmentFile == null)
            {
                return(apiAttachmentFile);
            }

            API.AttachmentFile result = new API.AttachmentFile();
            result.Id = sdkAttachmentFile.Id;
            result.SetInsertDate(sdkAttachmentFile.InsertDate.Ticks);
            result.Name    = sdkAttachmentFile.Name;
            result.Preview = sdkAttachmentFile.Preview;

            return(result);
        }
Пример #2
0
 public AttachmentFileConverter(OneSpanSign.API.AttachmentFile apiAttachmentFile)
 {
     this.apiAttachmentFile = apiAttachmentFile;
 }