Class FileContent
public sealed class FileContent : BaseResponse, IListItem, IResponseContent, IServerSentEvent
- Inheritance
-
FileContent
- Implements
- Inherited Members
Constructors
FileContent()
public FileContent()
FileContent(byte[], string)
public FileContent(byte[] fileData, string fileName)
Parameters
FileContent(string)
If the fileId starts with "http" or "https", it is a file url, otherwise it is a file id.
public FileContent(string fileId)
Parameters
fileIdstringThe id or url of the file.
FileContent(string, string)
public FileContent(string fileName, string fileData)
Parameters
Properties
FileData
[JsonInclude]
[JsonPropertyName("file_data")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string FileData { get; }
Property Value
FileId
[JsonInclude]
[JsonPropertyName("file_id")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string FileId { get; }
Property Value
FileName
[JsonInclude]
[JsonPropertyName("file_name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string FileName { get; }
Property Value
FileUrl
[JsonInclude]
[JsonPropertyName("file_url")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string FileUrl { get; }
Property Value
Object
[JsonIgnore]
public string Object { get; }
Property Value
Type
[JsonInclude]
[JsonPropertyName("type")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public ResponseContentType Type { get; }