Class ContentUserRatingDTO
Response for getting content user rating info
Inherited Members
Namespace: Unity.Services.Apis.UGC
Assembly: solution.dll
Syntax
[Preserve]
public class ContentUserRatingDTO
Constructors
ContentUserRatingDTO(string, string, string, DateTime, DateTime, float)
Initializes a new instance of the ContentUserRatingDTO class.
Declaration
[Preserve]
public ContentUserRatingDTO(string id = null, string userId = null, string contentId = null, DateTime createdAt = default, DateTime updatedAt = default, float rating = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | Id of content rating (required). |
| string | userId | Id of user providing rating (required). |
| string | contentId | Content the rating applies to (required). |
| DateTime | createdAt | Date rating was first created. |
| DateTime | updatedAt | Date rating was updated. |
| float | rating | User rating. |
Properties
ContentId
Content the rating applies to
Declaration
[Preserve]
public string ContentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Content the rating applies to |
CreatedAt
Date rating was first created
Declaration
[Preserve]
public DateTime CreatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime | Date rating was first created |
Id
Id of content rating
Declaration
[Preserve]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Id of content rating |
Rating
User rating
Declaration
[Preserve]
public float Rating { get; set; }
Property Value
| Type | Description |
|---|---|
| float | User rating |
UpdatedAt
Date rating was updated
Declaration
[Preserve]
public DateTime UpdatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime | Date rating was updated |
UserId
Id of user providing rating
Declaration
[Preserve]
public string UserId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Id of user providing rating |