C# Class Microsoft.Samples.Synchronization.ClientServices.Formatters.ODataAtomReader

SyncReader implementation for the OData Atompub format
Inheritance: SyncReader
Exibir arquivo Open project: rafek/SyncFx

Public Methods

Method Description
GetHasMoreChangesValue ( ) : bool

Returns the value of the sync:hasMoreChanges element

GetItem ( ) : IOfflineEntity

Returns the current entry element casted as an IOfflineEntity element

GetServerBlob ( ) : byte[]

Returns the sync:serverBlob element contents

Next ( ) : bool

Traverses through the feed and returns when it arrives at the necessary element.

ODataAtomReader ( Stream stream ) : System

Constructor with no KnownTypes specified

ODataAtomReader ( Stream stream, Type knownTypes ) : System

Constructor with KnownTypes specified

Start ( ) : void

Validates that the stream contains a valid feed item.

Method Details

GetHasMoreChangesValue() public method

Returns the value of the sync:hasMoreChanges element
public GetHasMoreChangesValue ( ) : bool
return bool

GetItem() public method

Returns the current entry element casted as an IOfflineEntity element
public GetItem ( ) : IOfflineEntity
return IOfflineEntity

GetServerBlob() public method

Returns the sync:serverBlob element contents
public GetServerBlob ( ) : byte[]
return byte[]

Next() public method

Traverses through the feed and returns when it arrives at the necessary element.
public Next ( ) : bool
return bool

ODataAtomReader() public method

Constructor with no KnownTypes specified
public ODataAtomReader ( Stream stream ) : System
stream Stream Input reader stream
return System

ODataAtomReader() public method

Constructor with KnownTypes specified
public ODataAtomReader ( Stream stream, Type knownTypes ) : System
stream Stream Input reader stream
knownTypes System.Type List of types to reflect from
return System

Start() public method

Validates that the stream contains a valid feed item.
public Start ( ) : void
return void