Diffusion .NET Client Library
6.1.5
|
Central factory for various content builders and readers More...
Public Member Functions | |
TB | NewBuilder< TB > () |
Creates a new content builder. More... | |
TR | NewReader< TR > (IContent content) |
Creates a new content reader. More... | |
IContent | NewContent (byte[] bytes) |
Convenience method to create simple byte content. More... | |
IContent | NewContent (string value) |
Convenience method to create simple string content. More... | |
Public Member Functions inherited from PushTechnology.ClientInterface.Client.Content.IRecordFactory | |
IRecord | NewRecord (params string[] fields) |
Create a new record comprising the supplied field values. More... | |
IRecord | NewRecord (ICollection< object > fields) |
Create a new record comprising the supplied field values. More... | |
IRecordBuilder | NewRecordBuilder () |
Returns a new record builder. More... | |
IRecordStructuredBuilder | NewRecordBuilder (IMRecord metadata) |
Returns a new structured record builder, i.e. one that uses IMRecord metadata, to enable field writes by name. More... | |
IRecordStructuredBuilder | NewDeltaRecordBuilder (IMRecord metadata) |
Returns a new structured record builder (i.e. one that uses IMRecord metadata to enable field writes by name. More... | |
Central factory for various content builders and readers
TB PushTechnology.ClientInterface.Client.Content.IContentFactory.NewBuilder< TB > | ( | ) |
Creates a new content builder.
To create a content builder you need to specify the class (interface) of the builder subtype that you wish to use.
TB | The builder type. |
Implemented in PushTechnology.ClientInterface.Client.Content.ContentFactory.
TB | : | class | |
TB | : | IContentBuilder<TB> |
IContent PushTechnology.ClientInterface.Client.Content.IContentFactory.NewContent | ( | byte[] | bytes | ) |
Convenience method to create simple byte content.
bytes | The bytes that comprise the content. |
Implemented in PushTechnology.ClientInterface.Client.Content.ContentFactory.
IContent PushTechnology.ClientInterface.Client.Content.IContentFactory.NewContent | ( | string | value | ) |
Convenience method to create simple string content.
UTF8 byte encoding is used to generate the byte content. If the UTF8 encoding is not available then the platform's default encoding is used.
value | The content value. Null will be represented as empty content. |
Implemented in PushTechnology.ClientInterface.Client.Content.ContentFactory.
TR PushTechnology.ClientInterface.Client.Content.IContentFactory.NewReader< TR > | ( | IContent | content | ) |
Creates a new content reader.
To create a content builder you need to specify the class (interface) of the reader subtype that you wish to use.
TR | The reader type. |
content | The content to read. |
Implemented in PushTechnology.ClientInterface.Client.Content.ContentFactory.
TR | : | class | |
TR | : | IContentReader |