Class NewContentRequest
Create a new content item
Inherited Members
Namespace: Unity.Services.Apis.UGC
Assembly: solution.dll
Syntax
[Preserve]
public class NewContentRequest
Constructors
NewContentRequest(string, string, string, ContentVisibility?, List<string>, string, string, string)
Initializes a new instance of the NewContentRequest class.
Declaration
[Preserve]
public NewContentRequest(string name = null, string description = null, string customId = null, ContentVisibility? visibility = null, List<string> tagIds = null, string contentMd5Hash = null, string thumbnailMd5Hash = null, string metadata = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Display name of the content (required). |
| string | description | Description of the content (required). |
| string | customId | customId. |
| ContentVisibility? | visibility | visibility. |
| List<string> | tagIds | Tag Ids of the content. |
| string | contentMd5Hash | A base64 encoded representation of the Content binary that will be uploaded. Used as a checksum.. |
| string | thumbnailMd5Hash | A base64 encoded representation of the Thumbnail file that will be uploaded. Used as a checksum.. |
| string | metadata | metadata. |
Properties
ContentMd5Hash
A base64 encoded representation of the Content binary that will be uploaded. Used as a checksum.
Declaration
[Preserve]
public string ContentMd5Hash { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A base64 encoded representation of the Content binary that will be uploaded. Used as a checksum. |
CustomId
Gets or Sets CustomId
Declaration
[Preserve]
public string CustomId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Description
Description of the content
Declaration
[Preserve]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Description of the content |
Metadata
Gets or Sets Metadata
Declaration
[Preserve]
public string Metadata { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Display name of the content
Declaration
[Preserve]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Display name of the content |
TagIds
Tag Ids of the content
Declaration
[Preserve]
public List<string> TagIds { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | Tag Ids of the content |
ThumbnailMd5Hash
A base64 encoded representation of the Thumbnail file that will be uploaded. Used as a checksum.
Declaration
[Preserve]
public string ThumbnailMd5Hash { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A base64 encoded representation of the Thumbnail file that will be uploaded. Used as a checksum. |
Visibility
Gets or Sets Visibility
Declaration
[Preserve]
public ContentVisibility? Visibility { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentVisibility? |