C# Class Media, code

Datei anzeigen Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
Get ( long id, DataContext, context ) : IMedia
Get ( long id, bool isLite, DataContext, context ) : IMedia
List ( bool isLite, DataContext context ) : ValidationList
List ( bool isLite, int skip, int top, DataContext context ) : ValidationList
Media ( String key, IError error )
Validate ( ) : bool

Validates the values and returns true if there are no problems.

Protected Methods

Method Description
MakeLite ( ) : void

Truncates relationships as appropriate to reduce over-the-wire size

Method Details

Get() public method

public Get ( long id, DataContext, context ) : IMedia
id long
context DataContext,
return IMedia

Get() public method

public Get ( long id, bool isLite, DataContext, context ) : IMedia
id long
isLite bool
context DataContext,
return IMedia

List() public method

public List ( bool isLite, DataContext context ) : ValidationList
isLite bool
context DataContext
return ValidationList

List() public method

public List ( bool isLite, int skip, int top, DataContext context ) : ValidationList
isLite bool
skip int
top int
context DataContext
return ValidationList

MakeLite() protected method

Truncates relationships as appropriate to reduce over-the-wire size
protected MakeLite ( ) : void
return void

Media() public method

public Media ( String key, IError error )
key String
error IError

Validate() public method

Validates the values and returns true if there are no problems.
public Validate ( ) : bool
return bool