示例#1
0
 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();
 }
示例#2
0
 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();
 }