NuxeoDotNetClient
1.0.0 beta
.NET Client for Nuxeo Automation and REST API
|
Represents a blob, that might enclose a whole file or a chunk. More...
Public Member Functions | |
Blob (string filename) | |
Initializes a new instance of Blob. More... | |
Blob (string filename, byte[] content) | |
Initializes a new instance of Blob. More... | |
Blob (string filename, byte[] content, string mime) | |
Initializes a new instance of Blob. More... | |
Blob | SetFilename (string filename) |
Sets the name of the file represented by the blob. More... | |
Blob | SetContent (byte[] content) |
Sets the blob's content. More... | |
Blob | SetContent (string content) |
Sets the blob's content. More... | |
Blob | SetMimeType (string mime) |
Set's the file's mime type. More... | |
Blob[] | Split (int numChunks) |
Splits a blob into numChunks chunks. More... | |
JObject | ToJObject () |
Creates and returns a JObject representation of the current object. More... | |
Static Public Member Functions | |
static Blob | FromJObject (JObject obj) |
Creates and returns a new instance of Blob build from an instance of JObject. More... | |
Properties | |
string | Filename [get] |
Gets the file name. More... | |
byte[] | Content [get] |
Gets the blob's content. More... | |
string | MimeType [get] |
Gets the file's mime type. More... | |
bool | IsChunk [get] |
Gets whether or not this blob is a chunk or the whole file. More... | |
Represents a blob, that might enclose a whole file or a chunk.
NuxeoClient.Blob.Blob | ( | string | filename | ) |
NuxeoClient.Blob.Blob | ( | string | filename, |
byte[] | content | ||
) |
NuxeoClient.Blob.Blob | ( | string | filename, |
byte[] | content, | ||
string | mime | ||
) |
|
static |
Blob NuxeoClient.Blob.SetContent | ( | byte[] | content | ) |
Blob NuxeoClient.Blob.SetContent | ( | string | content | ) |
Blob NuxeoClient.Blob.SetFilename | ( | string | filename | ) |
Blob NuxeoClient.Blob.SetMimeType | ( | string | mime | ) |
Blob [] NuxeoClient.Blob.Split | ( | int | numChunks | ) |
JObject NuxeoClient.Blob.ToJObject | ( | ) |
|
get |
|
get |