Diffusion .NET Client Library  6.1.5
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Content.IContentFactory Interface Reference

Central factory for various content builders and readers More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Content.IContentFactory:
PushTechnology.ClientInterface.Client.Content.IRecordFactory PushTechnology.ClientInterface.Client.Content.ContentFactory

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...
 

Detailed Description

Central factory for various content builders and readers

Member Function Documentation

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.

Template Parameters
TBThe builder type.
Returns
A new builder of the given type.

Implemented in PushTechnology.ClientInterface.Client.Content.ContentFactory.

Type Constraints
TB :class 
TB :IContentBuilder<TB> 
IContent PushTechnology.ClientInterface.Client.Content.IContentFactory.NewContent ( byte[]  bytes)

Convenience method to create simple byte content.

Parameters
bytesThe bytes that comprise the content.
Returns
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.

Parameters
valueThe content value. Null will be represented as empty content.
Returns
The 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.

Template Parameters
TRThe reader type.
Parameters
contentThe content to read.
Returns
A new reader of the given type.

Implemented in PushTechnology.ClientInterface.Client.Content.ContentFactory.

Type Constraints
TR :class 
TR :IContentReader 

The documentation for this interface was generated from the following file: