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); }
public AttachmentFileConverter(OneSpanSign.API.AttachmentFile apiAttachmentFile) { this.apiAttachmentFile = apiAttachmentFile; }