/// <summary>
 /// Initializes a new instance of the <see cref="CSTimesheetFileAttachment" /> class.
 /// </summary>
 /// <param name="timesheetId">timesheetId.</param>
 /// <param name="documentS3SignedUrl">documentS3SignedUrl.</param>
 /// <param name="imageLargeS3SignedUrl">imageLargeS3SignedUrl.</param>
 /// <param name="imageMediumS3SignedUrl">imageMediumS3SignedUrl.</param>
 /// <param name="imageSmallS3SignedUrl">imageSmallS3SignedUrl.</param>
 /// <param name="timesheetStart">timesheetStart.</param>
 /// <param name="timesheetEnd">timesheetEnd.</param>
 /// <param name="fileAttachmentId">fileAttachmentId.</param>
 /// <param name="userId">userId.</param>
 /// <param name="orgId">orgId.</param>
 /// <param name="mobilePlatform">mobilePlatform.</param>
 /// <param name="attachmentType">attachmentType.</param>
 /// <param name="notes">notes.</param>
 /// <param name="nonImageFilePath">nonImageFilePath.</param>
 /// <param name="imageLargeFilePath">imageLargeFilePath.</param>
 /// <param name="imageMediumFilePath">imageMediumFilePath.</param>
 /// <param name="imageSmallFilePath">imageSmallFilePath.</param>
 /// <param name="originalFileName">originalFileName.</param>
 /// <param name="latitude">latitude.</param>
 /// <param name="longitude">longitude.</param>
 /// <param name="dateUploaded">dateUploaded.</param>
 /// <param name="dateImageCaptured">dateImageCaptured.</param>
 /// <param name="storageAllocationBytes">storageAllocationBytes.</param>
 /// <param name="audioDurationSeconds">audioDurationSeconds.</param>
 public CSTimesheetFileAttachment(int?timesheetId = default(int?), string documentS3SignedUrl = default(string), string imageLargeS3SignedUrl = default(string), string imageMediumS3SignedUrl = default(string), string imageSmallS3SignedUrl = default(string), DateTime?timesheetStart = default(DateTime?), DateTime?timesheetEnd = default(DateTime?), int?fileAttachmentId = default(int?), int?userId = default(int?), int?orgId = default(int?), MobilePlatformEnum?mobilePlatform = default(MobilePlatformEnum?), AttachmentTypeEnum?attachmentType = default(AttachmentTypeEnum?), string notes = default(string), string nonImageFilePath = default(string), string imageLargeFilePath = default(string), string imageMediumFilePath = default(string), string imageSmallFilePath = default(string), string originalFileName = default(string), double?latitude = default(double?), double?longitude = default(double?), DateTime?dateUploaded = default(DateTime?), DateTime?dateImageCaptured = default(DateTime?), long?storageAllocationBytes = default(long?), int?audioDurationSeconds = default(int?))
 {
     this.TimesheetId            = timesheetId;
     this.DocumentS3SignedUrl    = documentS3SignedUrl;
     this.ImageLargeS3SignedUrl  = imageLargeS3SignedUrl;
     this.ImageMediumS3SignedUrl = imageMediumS3SignedUrl;
     this.ImageSmallS3SignedUrl  = imageSmallS3SignedUrl;
     this.TimesheetStart         = timesheetStart;
     this.TimesheetEnd           = timesheetEnd;
     this.FileAttachmentId       = fileAttachmentId;
     this.UserId                 = userId;
     this.OrgId                  = orgId;
     this.MobilePlatform         = mobilePlatform;
     this.AttachmentType         = attachmentType;
     this.Notes                  = notes;
     this.NonImageFilePath       = nonImageFilePath;
     this.ImageLargeFilePath     = imageLargeFilePath;
     this.ImageMediumFilePath    = imageMediumFilePath;
     this.ImageSmallFilePath     = imageSmallFilePath;
     this.OriginalFileName       = originalFileName;
     this.Latitude               = latitude;
     this.Longitude              = longitude;
     this.DateUploaded           = dateUploaded;
     this.DateImageCaptured      = dateImageCaptured;
     this.StorageAllocationBytes = storageAllocationBytes;
     this.AudioDurationSeconds   = audioDurationSeconds;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrgReportTimesheetFileAttachment" /> class.
 /// </summary>
 /// <param name="username">username.</param>
 /// <param name="emailAddress">emailAddress.</param>
 /// <param name="firstName">firstName.</param>
 /// <param name="lastName">lastName.</param>
 /// <param name="timesheetId">The ID of the timesheet this attachment is attached to..</param>
 /// <param name="documentS3SignedUrl">The limited use signed URL for the document (if it&#39;s not an image).  This URL is unique and will eventually expire.  If the attachment is an image, then this won&#39;t be set..</param>
 /// <param name="imageLargeS3SignedUrl">The limited use signed URL for the large version of the image.  This URL is unique and will eventually expire.  Only set when the attachment is actually an image..</param>
 /// <param name="imageMediumS3SignedUrl">The limited use signed URL for the medium version of the image.  This URL is unique and will eventually expire.  Only set when the attachment is actually an image..</param>
 /// <param name="imageSmallS3SignedUrl">The limited use signed URL for the small version of the image.  This URL is unique and will eventually expire.  Only set when the attachment is actually an image..</param>
 /// <param name="timesheetStart">The start date and time of the timesheet that this attachment is attached to.</param>
 /// <param name="timesheetEnd">The end date and time of the timesheet that this attachment is attached to.</param>
 /// <param name="fileAttachmentId">The ID of the file attachment.</param>
 /// <param name="userId">The ID of the user who attached the file.</param>
 /// <param name="orgId">The ID of the organisation that owns the file and employs the employee.</param>
 /// <param name="mobilePlatform">The mobile platform that was used to attach the file.</param>
 /// <param name="attachmentType">The type of file attachment.</param>
 /// <param name="notes">Any notes regarding the file attachment.</param>
 /// <param name="nonImageFilePath">The path to the file attachment as hosted by ChronoSheets storage, if it&#39;s not an image.  If the attachment is an image then this won&#39;t be set..</param>
 /// <param name="imageLargeFilePath">The path to the file attachment as hosted by ChronoSheets storage, only set if it&#39;s an image.  This is regarding the large version of the image..</param>
 /// <param name="imageMediumFilePath">The path to the file attachment as hosted by ChronoSheets storage, only set if it&#39;s an image.  This is regarding the medium version of the image..</param>
 /// <param name="imageSmallFilePath">The path to the file attachment as hosted by ChronoSheets storage, only set if it&#39;s an image.  This is regarding the small version of the image..</param>
 /// <param name="originalFileName">The original file name of the attachment.</param>
 /// <param name="latitude">Meta-data indicating the latitude of the file attachment.  If the attachment is an image, this data originates from the meta data inside the image file..</param>
 /// <param name="longitude">Meta-data indicating the longitude of the file attachment.  If the attachment is an image, this data originates from the meta data inside the image file..</param>
 /// <param name="dateUploaded">The date and time the attachment was uploaded.  Time is in UTC..</param>
 /// <param name="dateImageCaptured">The original date and time the image was captured, if it was an image.  This data originates from the meta data inside the image file..</param>
 /// <param name="storageAllocationBytes">The number of bytes allocated for storing the file attachment..</param>
 /// <param name="audioDurationSeconds">If the attachment was an audio file, this field indicates the duration of the audio file in seconds.  This data originates from the meta data inside the audio file..</param>
 public OrgReportTimesheetFileAttachment(string username = default(string), string emailAddress = default(string), string firstName = default(string), string lastName = default(string), int timesheetId = default(int), string documentS3SignedUrl = default(string), string imageLargeS3SignedUrl = default(string), string imageMediumS3SignedUrl = default(string), string imageSmallS3SignedUrl = default(string), DateTime timesheetStart = default(DateTime), DateTime timesheetEnd = default(DateTime), int fileAttachmentId = default(int), int userId = default(int), int orgId = default(int), MobilePlatformEnum?mobilePlatform = default(MobilePlatformEnum?), AttachmentTypeEnum?attachmentType = default(AttachmentTypeEnum?), string notes = default(string), string nonImageFilePath = default(string), string imageLargeFilePath = default(string), string imageMediumFilePath = default(string), string imageSmallFilePath = default(string), string originalFileName = default(string), double latitude = default(double), double longitude = default(double), DateTime dateUploaded = default(DateTime), DateTime dateImageCaptured = default(DateTime), long storageAllocationBytes = default(long), int audioDurationSeconds = default(int))
 {
     this.Username               = username;
     this.EmailAddress           = emailAddress;
     this.FirstName              = firstName;
     this.LastName               = lastName;
     this.TimesheetId            = timesheetId;
     this.DocumentS3SignedUrl    = documentS3SignedUrl;
     this.ImageLargeS3SignedUrl  = imageLargeS3SignedUrl;
     this.ImageMediumS3SignedUrl = imageMediumS3SignedUrl;
     this.ImageSmallS3SignedUrl  = imageSmallS3SignedUrl;
     this.TimesheetStart         = timesheetStart;
     this.TimesheetEnd           = timesheetEnd;
     this.FileAttachmentId       = fileAttachmentId;
     this.UserId                 = userId;
     this.OrgId                  = orgId;
     this.MobilePlatform         = mobilePlatform;
     this.AttachmentType         = attachmentType;
     this.Notes                  = notes;
     this.NonImageFilePath       = nonImageFilePath;
     this.ImageLargeFilePath     = imageLargeFilePath;
     this.ImageMediumFilePath    = imageMediumFilePath;
     this.ImageSmallFilePath     = imageSmallFilePath;
     this.OriginalFileName       = originalFileName;
     this.Latitude               = latitude;
     this.Longitude              = longitude;
     this.DateUploaded           = dateUploaded;
     this.DateImageCaptured      = dateImageCaptured;
     this.StorageAllocationBytes = storageAllocationBytes;
     this.AudioDurationSeconds   = audioDurationSeconds;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CSOrgReportTimesheetFileAttachment" /> class.
 /// </summary>
 /// <param name="Username">Username.</param>
 /// <param name="EmailAddress">EmailAddress.</param>
 /// <param name="FirstName">FirstName.</param>
 /// <param name="LastName">LastName.</param>
 /// <param name="TimesheetStart">TimesheetStart.</param>
 /// <param name="TimesheetEnd">TimesheetEnd.</param>
 /// <param name="TimesheetId">TimesheetId.</param>
 /// <param name="DocumentS3SignedUrl">DocumentS3SignedUrl.</param>
 /// <param name="ImageLargeS3SignedUrl">ImageLargeS3SignedUrl.</param>
 /// <param name="ImageMediumS3SignedUrl">ImageMediumS3SignedUrl.</param>
 /// <param name="ImageSmallS3SignedUrl">ImageSmallS3SignedUrl.</param>
 /// <param name="FileAttachmentId">FileAttachmentId.</param>
 /// <param name="UserId">UserId.</param>
 /// <param name="OrgId">OrgId.</param>
 /// <param name="MobilePlatform">MobilePlatform.</param>
 /// <param name="AttachmentType">AttachmentType.</param>
 /// <param name="Notes">Notes.</param>
 /// <param name="NonImageFilePath">NonImageFilePath.</param>
 /// <param name="ImageLargeFilePath">ImageLargeFilePath.</param>
 /// <param name="ImageMediumFilePath">ImageMediumFilePath.</param>
 /// <param name="ImageSmallFilePath">ImageSmallFilePath.</param>
 /// <param name="OriginalFileName">OriginalFileName.</param>
 /// <param name="Latitude">Latitude.</param>
 /// <param name="Longitude">Longitude.</param>
 /// <param name="DateUploaded">DateUploaded.</param>
 /// <param name="DateImageCaptured">DateImageCaptured.</param>
 /// <param name="StorageAllocationBytes">StorageAllocationBytes.</param>
 public CSOrgReportTimesheetFileAttachment(string Username = default(string), string EmailAddress = default(string), string FirstName = default(string), string LastName = default(string), DateTime?TimesheetStart = default(DateTime?), DateTime?TimesheetEnd = default(DateTime?), int?TimesheetId = default(int?), string DocumentS3SignedUrl = default(string), string ImageLargeS3SignedUrl = default(string), string ImageMediumS3SignedUrl = default(string), string ImageSmallS3SignedUrl = default(string), int?FileAttachmentId = default(int?), int?UserId = default(int?), int?OrgId = default(int?), MobilePlatformEnum?MobilePlatform = default(MobilePlatformEnum?), AttachmentTypeEnum?AttachmentType = default(AttachmentTypeEnum?), string Notes = default(string), string NonImageFilePath = default(string), string ImageLargeFilePath = default(string), string ImageMediumFilePath = default(string), string ImageSmallFilePath = default(string), string OriginalFileName = default(string), double?Latitude = default(double?), double?Longitude = default(double?), DateTime?DateUploaded = default(DateTime?), DateTime?DateImageCaptured = default(DateTime?), long?StorageAllocationBytes = default(long?))
 {
     this.Username               = Username;
     this.EmailAddress           = EmailAddress;
     this.FirstName              = FirstName;
     this.LastName               = LastName;
     this.TimesheetStart         = TimesheetStart;
     this.TimesheetEnd           = TimesheetEnd;
     this.TimesheetId            = TimesheetId;
     this.DocumentS3SignedUrl    = DocumentS3SignedUrl;
     this.ImageLargeS3SignedUrl  = ImageLargeS3SignedUrl;
     this.ImageMediumS3SignedUrl = ImageMediumS3SignedUrl;
     this.ImageSmallS3SignedUrl  = ImageSmallS3SignedUrl;
     this.FileAttachmentId       = FileAttachmentId;
     this.UserId                 = UserId;
     this.OrgId                  = OrgId;
     this.MobilePlatform         = MobilePlatform;
     this.AttachmentType         = AttachmentType;
     this.Notes                  = Notes;
     this.NonImageFilePath       = NonImageFilePath;
     this.ImageLargeFilePath     = ImageLargeFilePath;
     this.ImageMediumFilePath    = ImageMediumFilePath;
     this.ImageSmallFilePath     = ImageSmallFilePath;
     this.OriginalFileName       = OriginalFileName;
     this.Latitude               = Latitude;
     this.Longitude              = Longitude;
     this.DateUploaded           = DateUploaded;
     this.DateImageCaptured      = DateImageCaptured;
     this.StorageAllocationBytes = StorageAllocationBytes;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CSOrgReportTranscript" /> class.
 /// </summary>
 /// <param name="finishedJob">finishedJob.</param>
 /// <param name="completedProcessing">completedProcessing.</param>
 /// <param name="created">created.</param>
 /// <param name="startedProcessing">startedProcessing.</param>
 /// <param name="transcriptionId">transcriptionId.</param>
 /// <param name="jobName">jobName.</param>
 /// <param name="contents">contents.</param>
 /// <param name="mediaType">mediaType.</param>
 /// <param name="transcriptionStatus">transcriptionStatus.</param>
 /// <param name="username">username.</param>
 /// <param name="emailAddress">emailAddress.</param>
 /// <param name="firstName">firstName.</param>
 /// <param name="lastName">lastName.</param>
 /// <param name="timesheetId">timesheetId.</param>
 /// <param name="documentS3SignedUrl">documentS3SignedUrl.</param>
 /// <param name="imageLargeS3SignedUrl">imageLargeS3SignedUrl.</param>
 /// <param name="imageMediumS3SignedUrl">imageMediumS3SignedUrl.</param>
 /// <param name="imageSmallS3SignedUrl">imageSmallS3SignedUrl.</param>
 /// <param name="timesheetStart">timesheetStart.</param>
 /// <param name="timesheetEnd">timesheetEnd.</param>
 /// <param name="fileAttachmentId">fileAttachmentId.</param>
 /// <param name="userId">userId.</param>
 /// <param name="orgId">orgId.</param>
 /// <param name="mobilePlatform">mobilePlatform.</param>
 /// <param name="attachmentType">attachmentType.</param>
 /// <param name="notes">notes.</param>
 /// <param name="nonImageFilePath">nonImageFilePath.</param>
 /// <param name="imageLargeFilePath">imageLargeFilePath.</param>
 /// <param name="imageMediumFilePath">imageMediumFilePath.</param>
 /// <param name="imageSmallFilePath">imageSmallFilePath.</param>
 /// <param name="originalFileName">originalFileName.</param>
 /// <param name="latitude">latitude.</param>
 /// <param name="longitude">longitude.</param>
 /// <param name="dateUploaded">dateUploaded.</param>
 /// <param name="dateImageCaptured">dateImageCaptured.</param>
 /// <param name="storageAllocationBytes">storageAllocationBytes.</param>
 /// <param name="audioDurationSeconds">audioDurationSeconds.</param>
 public CSOrgReportTranscript(bool?finishedJob = default(bool?), DateTime?completedProcessing = default(DateTime?), DateTime?created = default(DateTime?), DateTime?startedProcessing = default(DateTime?), int?transcriptionId = default(int?), string jobName = default(string), string contents = default(string), MediaTypeEnum?mediaType = default(MediaTypeEnum?), TranscriptionStatusEnum?transcriptionStatus = default(TranscriptionStatusEnum?), string username = default(string), string emailAddress = default(string), string firstName = default(string), string lastName = default(string), int?timesheetId = default(int?), string documentS3SignedUrl = default(string), string imageLargeS3SignedUrl = default(string), string imageMediumS3SignedUrl = default(string), string imageSmallS3SignedUrl = default(string), DateTime?timesheetStart = default(DateTime?), DateTime?timesheetEnd = default(DateTime?), int?fileAttachmentId = default(int?), int?userId = default(int?), int?orgId = default(int?), MobilePlatformEnum?mobilePlatform = default(MobilePlatformEnum?), AttachmentTypeEnum?attachmentType = default(AttachmentTypeEnum?), string notes = default(string), string nonImageFilePath = default(string), string imageLargeFilePath = default(string), string imageMediumFilePath = default(string), string imageSmallFilePath = default(string), string originalFileName = default(string), double?latitude = default(double?), double?longitude = default(double?), DateTime?dateUploaded = default(DateTime?), DateTime?dateImageCaptured = default(DateTime?), long?storageAllocationBytes = default(long?), int?audioDurationSeconds = default(int?))
 {
     this.FinishedJob            = finishedJob;
     this.CompletedProcessing    = completedProcessing;
     this.Created                = created;
     this.StartedProcessing      = startedProcessing;
     this.TranscriptionId        = transcriptionId;
     this.JobName                = jobName;
     this.Contents               = contents;
     this.MediaType              = mediaType;
     this.TranscriptionStatus    = transcriptionStatus;
     this.Username               = username;
     this.EmailAddress           = emailAddress;
     this.FirstName              = firstName;
     this.LastName               = lastName;
     this.TimesheetId            = timesheetId;
     this.DocumentS3SignedUrl    = documentS3SignedUrl;
     this.ImageLargeS3SignedUrl  = imageLargeS3SignedUrl;
     this.ImageMediumS3SignedUrl = imageMediumS3SignedUrl;
     this.ImageSmallS3SignedUrl  = imageSmallS3SignedUrl;
     this.TimesheetStart         = timesheetStart;
     this.TimesheetEnd           = timesheetEnd;
     this.FileAttachmentId       = fileAttachmentId;
     this.UserId                 = userId;
     this.OrgId                  = orgId;
     this.MobilePlatform         = mobilePlatform;
     this.AttachmentType         = attachmentType;
     this.Notes                  = notes;
     this.NonImageFilePath       = nonImageFilePath;
     this.ImageLargeFilePath     = imageLargeFilePath;
     this.ImageMediumFilePath    = imageMediumFilePath;
     this.ImageSmallFilePath     = imageSmallFilePath;
     this.OriginalFileName       = originalFileName;
     this.Latitude               = latitude;
     this.Longitude              = longitude;
     this.DateUploaded           = dateUploaded;
     this.DateImageCaptured      = dateImageCaptured;
     this.StorageAllocationBytes = storageAllocationBytes;
     this.AudioDurationSeconds   = audioDurationSeconds;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Attachment" /> class.
 /// </summary>
 /// <param name="AttachedBusObId">AttachedBusObId.</param>
 /// <param name="AttachedBusObRecId">AttachedBusObRecId.</param>
 /// <param name="AttachmentFileId">AttachmentFileId.</param>
 /// <param name="AttachmentFileName">AttachmentFileName.</param>
 /// <param name="AttachmentFileType">AttachmentFileType.</param>
 /// <param name="AttachmentId">AttachmentId.</param>
 /// <param name="AttachmentType">AttachmentType.</param>
 /// <param name="BusObId">BusObId.</param>
 /// <param name="BusObRecId">BusObRecId.</param>
 /// <param name="Comment">Comment.</param>
 /// <param name="Created">Created.</param>
 /// <param name="DisplayText">DisplayText.</param>
 /// <param name="Links">Links.</param>
 /// <param name="Owner">Owner.</param>
 /// <param name="Scope">Scope.</param>
 /// <param name="ScopeOwner">ScopeOwner.</param>
 /// <param name="Type">Type.</param>
 public Attachment(string AttachedBusObId = default(string), string AttachedBusObRecId = default(string), string AttachmentFileId = default(string), string AttachmentFileName = default(string), string AttachmentFileType = default(string), string AttachmentId = default(string), AttachmentTypeEnum?AttachmentType = default(AttachmentTypeEnum?), string BusObId = default(string), string BusObRecId = default(string), string Comment = default(string), DateTime?Created = default(DateTime?), string DisplayText = default(string), List <Link> Links = default(List <Link>), string Owner = default(string), ScopeEnum?Scope = default(ScopeEnum?), string ScopeOwner = default(string), TypeEnum?Type = default(TypeEnum?))
 {
     this.AttachedBusObId    = AttachedBusObId;
     this.AttachedBusObRecId = AttachedBusObRecId;
     this.AttachmentFileId   = AttachmentFileId;
     this.AttachmentFileName = AttachmentFileName;
     this.AttachmentFileType = AttachmentFileType;
     this.AttachmentId       = AttachmentId;
     this.AttachmentType     = AttachmentType;
     this.BusObId            = BusObId;
     this.BusObRecId         = BusObRecId;
     this.Comment            = Comment;
     this.Created            = Created;
     this.DisplayText        = DisplayText;
     this.Links      = Links;
     this.Owner      = Owner;
     this.Scope      = Scope;
     this.ScopeOwner = ScopeOwner;
     this.Type       = Type;
 }
Пример #6
0
 public async Task <ActionResult <List <FileBrowserDto> > > FileBrowser([FromQuery] AttachmentTypeEnum?type)
 {
     return(await Mediator.Send(new FileBrowser.Query {
         Type = type
     }));
 }
Пример #7
0
 public async Task <ActionResult <List <AttachmentDto> > > List([FromQuery] AttachmentTypeEnum?type)
 {
     return(await Mediator.Send(new List.Query {
         Type = type
     }));
 }