using System; namespace Unity.Cloud.UserReporting { /// /// Represents a user report attachment. /// public struct UserReportAttachment { #region Constructors /// /// Creates a new instance of the struct. /// /// The name. /// The file name. /// The content type. /// The data. public UserReportAttachment(string name, string fileName, string contentType, byte[] data) { this.Name = name; this.FileName = fileName; this.ContentType = contentType; this.DataBase64 = Convert.ToBase64String(data); this.DataIdentifier = null; } #endregion #region Properties /// /// Get or sets the content type. /// public string ContentType { get; set; } /// /// Gets or sets the data (base 64 encoded). /// public string DataBase64 { get; set; } /// /// Gets or sets the data identifier. This property will be overwritten by the server if provided. /// public string DataIdentifier { get; set; } /// /// Gets or sets the file name. /// public string FileName { get; set; } /// /// Gets or sets the name. /// public string Name { get; set; } #endregion } }