public BinaryResourceDescriptor(string name, eBinaryResourceContentType contentType, eBinaryResourceLocationType locationType, ContentDescriptor contentDescriptor, LocationDescriptor locationDescriptor, int size = 0, string description = "") { this.FriendlyName = name; this.FriendlyDescription = description; this.Size = size; this.ContentType = contentType; this.LocationType = locationType; this.ContentDescriptorJson = contentDescriptor.ToJSON(); this.LocationDescriptorJson = locationDescriptor.ToJSON(); }