C# Class FlexiWebSDK.FlexiWebService

Inheritance: IFieldService
Show file Open project: FlexiDB/PublicCSharpLib Class Usage Examples

Private Properties

Property Type Description
AddFile Task
CheckNeedUploadFiles void
FileExistToServer Task
FindTypeIdOnServer int
UploadFieldFileOrImage void

Public Methods

Method Description
Add ( List links ) : void
Add ( List objects, bool checkUploadFile = false ) : void
Add ( XLink link ) : void
Add ( XObject obj, bool checkUploadFile = false ) : void
CreateDataSet ( int schemaId, string name ) : int
Delete ( int typeId, IEnumerable listId ) : void
Delete ( int typeId, int objId ) : void
Exist ( XLink link ) : bool
Exist ( int typeId ) : bool
Get ( int typeId, int objId ) : XObject
GetAll ( int typeId, int schemaId, int setId ) : XObject>.Dictionary
GetAll ( FieldMode fieldMode = FieldMode.all ) : XType>.Dictionary
GetAll ( int typeId, FieldMode fieldMode = FieldMode.all ) : XFieldInfo>.Dictionary
GetById ( int id ) : XEnum
GetBySchema ( int schemaId, FieldMode fieldMode = FieldMode.all ) : XType>.Dictionary
GetFieldValue ( int typeId, int objId, string fieldName ) : string
GetFields ( int id ) : string>.Dictionary
GetLinksInfo ( int typeId ) : XLinkInfo>.Dictionary
GetRelation ( int sourceTypeId, int targetTypeId ) : TypeRelation
GetSchemas ( ) : XSchema>.Dictionary
GetSets ( int shemeId ) : XSet>.Dictionary
TryGetValueByLabel ( int id, string label, string &value ) : bool
Update ( int typeId, int objId, XField field ) : bool
Update ( List objects, bool checkUploadFile = false ) : void
Update ( XObject obj, bool checkUploadFile = false ) : void
Validate ( XLink link ) : bool
Validate ( int typeId, List fields ) : bool
Validate ( int typeId, XField field ) : bool
Validate ( List links ) : void
ValidateValue ( int id, string value ) : bool

Private Methods

Method Description
AddFile ( int typeId, int objId, XField field ) : Task
CheckNeedUploadFiles ( XObject obj ) : void
FileExistToServer ( int typeId, int objId, string field, string localName ) : Task
FindTypeIdOnServer ( Type type ) : int
UploadFieldFileOrImage ( int typeId, int objId, IEnumerable fields ) : void

Method Details

Add() public method

public Add ( List links ) : void
links List
return void

Add() public method

public Add ( List objects, bool checkUploadFile = false ) : void
objects List
checkUploadFile bool
return void

Add() public method

public Add ( XLink link ) : void
link FlexiWebSDK.DomainModels.XLink
return void

Add() public method

public Add ( XObject obj, bool checkUploadFile = false ) : void
obj FlexiWebSDK.DomainModels.XObject
checkUploadFile bool
return void

CreateDataSet() public method

public CreateDataSet ( int schemaId, string name ) : int
schemaId int
name string
return int

Delete() public method

public Delete ( int typeId, IEnumerable listId ) : void
typeId int
listId IEnumerable
return void

Delete() public method

public Delete ( int typeId, int objId ) : void
typeId int
objId int
return void

Exist() public method

public Exist ( XLink link ) : bool
link FlexiWebSDK.DomainModels.XLink
return bool

Exist() public method

public Exist ( int typeId ) : bool
typeId int
return bool

Get() public method

public Get ( int typeId, int objId ) : XObject
typeId int
objId int
return FlexiWebSDK.DomainModels.XObject

GetAll() public method

public GetAll ( int typeId, int schemaId, int setId ) : XObject>.Dictionary
typeId int
schemaId int
setId int
return XObject>.Dictionary

GetAll() public method

public GetAll ( FieldMode fieldMode = FieldMode.all ) : XType>.Dictionary
fieldMode FieldMode
return XType>.Dictionary

GetAll() public method

public GetAll ( int typeId, FieldMode fieldMode = FieldMode.all ) : XFieldInfo>.Dictionary
typeId int
fieldMode FieldMode
return XFieldInfo>.Dictionary

GetById() public method

public GetById ( int id ) : XEnum
id int
return FlexiWebSDK.DomainModels.XEnum

GetBySchema() public method

public GetBySchema ( int schemaId, FieldMode fieldMode = FieldMode.all ) : XType>.Dictionary
schemaId int
fieldMode FieldMode
return XType>.Dictionary

GetFieldValue() public method

public GetFieldValue ( int typeId, int objId, string fieldName ) : string
typeId int
objId int
fieldName string
return string

GetFields() public method

public GetFields ( int id ) : string>.Dictionary
id int
return string>.Dictionary

GetLinksInfo() public method

public GetLinksInfo ( int typeId ) : XLinkInfo>.Dictionary
typeId int
return XLinkInfo>.Dictionary

GetRelation() public method

public GetRelation ( int sourceTypeId, int targetTypeId ) : TypeRelation
sourceTypeId int
targetTypeId int
return TypeRelation

GetSchemas() public method

public GetSchemas ( ) : XSchema>.Dictionary
return XSchema>.Dictionary

GetSets() public method

public GetSets ( int shemeId ) : XSet>.Dictionary
shemeId int
return XSet>.Dictionary

TryGetValueByLabel() public method

public TryGetValueByLabel ( int id, string label, string &value ) : bool
id int
label string
value string
return bool

Update() public method

public Update ( int typeId, int objId, XField field ) : bool
typeId int
objId int
field FlexiWebSDK.DomainModels.XField
return bool

Update() public method

public Update ( List objects, bool checkUploadFile = false ) : void
objects List
checkUploadFile bool
return void

Update() public method

public Update ( XObject obj, bool checkUploadFile = false ) : void
obj FlexiWebSDK.DomainModels.XObject
checkUploadFile bool
return void

Validate() public method

public Validate ( XLink link ) : bool
link FlexiWebSDK.DomainModels.XLink
return bool

Validate() public method

public Validate ( int typeId, List fields ) : bool
typeId int
fields List
return bool

Validate() public method

public Validate ( int typeId, XField field ) : bool
typeId int
field FlexiWebSDK.DomainModels.XField
return bool

Validate() public method

public Validate ( List links ) : void
links List
return void

ValidateValue() public method

public ValidateValue ( int id, string value ) : bool
id int
value string
return bool