Class GoogleCloudPlatformAttachmentProperties
public class GoogleCloudPlatformAttachmentProperties : AttachmentProperties, IHttpSerializable
- Inheritance
-
GoogleCloudPlatformAttachmentProperties
- Implements
- Inherited Members
Constructors
GoogleCloudPlatformAttachmentProperties(string, string)
public GoogleCloudPlatformAttachmentProperties(string fileName, string uploadedFileName)
Parameters
fileNamestringName of the file (max 1024 characters for attachments sent by message, 2-30 characters for attachments used for sticker creation).
uploadedFileNamestringName of the upload.
Properties
SupportsHttpSerialization
public override bool SupportsHttpSerialization { get; }
Property Value
UploadedFileName
Name of the upload.
public string UploadedFileName { get; set; }
Property Value
Methods
Serialize()
Serializes the object or its part into HttpContent.
public override HttpContent Serialize()
Returns
WithDescription(string?)
Description for the file (max 1024 characters for attachments sent by message, max 200 characters for attachments used for sticker creation).
public GoogleCloudPlatformAttachmentProperties WithDescription(string? description)
Parameters
descriptionstring
Returns
WithFileName(string)
Name of the file (max 1024 characters for attachments sent by message, 2-30 characters for attachments used for sticker creation).
public GoogleCloudPlatformAttachmentProperties WithFileName(string fileName)
Parameters
fileNamestring
Returns
WithTitle(string?)
Title of the attachment.
public GoogleCloudPlatformAttachmentProperties WithTitle(string? title)
Parameters
titlestring
Returns
WithUploadedFileName(string)
Name of the upload.
public GoogleCloudPlatformAttachmentProperties WithUploadedFileName(string uploadedFileName)
Parameters
uploadedFileNamestring
Returns
WriteTo(Utf8JsonWriter, int)
protected override void WriteTo(Utf8JsonWriter writer, int attachmentId)
Parameters
writerUtf8JsonWriterattachmentIdint