Class LiveChatMessagesResource
The "liveChatMessages" collection of methods.
Inheritance
System.Object
LiveChatMessagesResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class LiveChatMessagesResource
Constructors
LiveChatMessagesResource(IClientService)
Constructs a new resource.
Declaration
public LiveChatMessagesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Delete(String)
Deletes a chat message.
Declaration
public virtual LiveChatMessagesResource.DeleteRequest Delete(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | The id parameter specifies the YouTube chat message ID of the resource that is being deleted. |
Returns
| Type | Description |
|---|---|
| LiveChatMessagesResource.DeleteRequest |
Insert(LiveChatMessage, String)
Adds a message to a live chat.
Declaration
public virtual LiveChatMessagesResource.InsertRequest Insert(LiveChatMessage body, string part)
Parameters
| Type | Name | Description |
|---|---|---|
| LiveChatMessage | body | The body of the request. |
| System.String | part | The part parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet. |
Returns
| Type | Description |
|---|---|
| LiveChatMessagesResource.InsertRequest |
List(String, String)
Lists live chat messages for a specific chat.
Declaration
public virtual LiveChatMessagesResource.ListRequest List(string liveChatId, string part)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | liveChatId | The liveChatId parameter specifies the ID of the chat whose messages will be returned. |
| System.String | part | The part parameter specifies the liveChatComment resource parts that the API response will include. Supported values are id and snippet. |
Returns
| Type | Description |
|---|---|
| LiveChatMessagesResource.ListRequest |