C# 클래스 Ironman.Core.API.Manager.Manager

API manager
파일 보기 프로젝트 열기: JaCraig/Craig-s-Utility-Library

Private Properties

프로퍼티 타입 설명
Error Dynamo
Success Dynamo

공개 메소드들

메소드 설명
All ( int Version, string Mapping ) : IEnumerable

Gets all items of the specified mapping

Any ( int Version, string Mapping, string ID ) : Dynamo

Gets the specified item

CallService ( int Version, string Mapping, Dynamo Value ) : Dynamo

Runs the specified service

Delete ( int Version, string Mapping, string ID ) : Dynamo

Deletes an object

DeleteProperty ( int Version, string Mapping, string ID, string PropertyName, string PropertyID ) : Dynamo

Deletes a property value

GetProperty ( int Version, string Mapping, string ID, string Property ) : dynamic

Gets the specified item

Manager ( IEnumerable Mappings, IEnumerable Services, IEnumerable Modules, Utilities WorkflowManager ) : System

Constructor

PageCount ( int Version, string Mapping, int PageSize ) : Dynamo

Gets the page count for the mapping specified

Paged ( int Version, string Mapping, int PageSize, int Page, string OrderBy, string EmbeddedProperties ) : IEnumerable

Gets all items of the specified mapping of the specified page

RegisterRoutes ( RouteCollection routes, string ControllerName = "API", string AreaName = "" ) : void

Registers the routes used by the API system

Save ( int Version, string Mapping, IEnumerable Objects ) : Dynamo

Saves a list of objects

SaveProperty ( int Version, string Mapping, string ID, string PropertyName, IEnumerable Models ) : Dynamo

Saves a property

ToString ( ) : string

Outputs manager info as a string

this ( int Version, string Key ) : IAPIMapping

Gets the specified mapping

비공개 메소드들

메소드 설명
Error ( string Message ) : Dynamo
Success ( string Message ) : Dynamo

메소드 상세

All() 공개 메소드

Gets all items of the specified mapping
public All ( int Version, string Mapping ) : IEnumerable
Version int API version number
Mapping string Mapping name
리턴 IEnumerable

Any() 공개 메소드

Gets the specified item
public Any ( int Version, string Mapping, string ID ) : Dynamo
Version int API version number
Mapping string Mapping name
ID string ID of the item to get
리턴 Dynamo

CallService() 공개 메소드

Runs the specified service
public CallService ( int Version, string Mapping, Dynamo Value ) : Dynamo
Version int API version number
Mapping string Mapping name
Value Dynamo The value.
리턴 Dynamo

Delete() 공개 메소드

Deletes an object
public Delete ( int Version, string Mapping, string ID ) : Dynamo
Version int API version number
Mapping string Mapping name
ID string ID of the object to delete
리턴 Dynamo

DeleteProperty() 공개 메소드

Deletes a property value
public DeleteProperty ( int Version, string Mapping, string ID, string PropertyName, string PropertyID ) : Dynamo
Version int Version number
Mapping string Model name
ID string ID of the item to get
PropertyName string Property name
PropertyID string Property ID
리턴 Dynamo

GetProperty() 공개 메소드

Gets the specified item
public GetProperty ( int Version, string Mapping, string ID, string Property ) : dynamic
Version int API version number
Mapping string Mapping name
ID string ID of the item to get
Property string Property name
리턴 dynamic

Manager() 공개 메소드

Constructor
public Manager ( IEnumerable Mappings, IEnumerable Services, IEnumerable Modules, Utilities WorkflowManager ) : System
Mappings IEnumerable The mappings.
Services IEnumerable The services.
Modules IEnumerable The workflow modules.
WorkflowManager Utilities The workflow manager.
리턴 System

PageCount() 공개 메소드

Gets the page count for the mapping specified
public PageCount ( int Version, string Mapping, int PageSize ) : Dynamo
Version int API version number
Mapping string Mapping name
PageSize int Size of the page.
리턴 Dynamo

Paged() 공개 메소드

Gets all items of the specified mapping of the specified page
public Paged ( int Version, string Mapping, int PageSize, int Page, string OrderBy, string EmbeddedProperties ) : IEnumerable
Version int API version number
Mapping string Mapping name
PageSize int Size of the page.
Page int The page desired
OrderBy string The order by clause
EmbeddedProperties string Embedded properties
리턴 IEnumerable

RegisterRoutes() 공개 메소드

Registers the routes used by the API system
public RegisterRoutes ( RouteCollection routes, string ControllerName = "API", string AreaName = "" ) : void
routes RouteCollection The routing table
ControllerName string Name of the controller.
AreaName string Name of the area (leave blank if you're not using one).
리턴 void

Save() 공개 메소드

Saves a list of objects
public Save ( int Version, string Mapping, IEnumerable Objects ) : Dynamo
Version int API version number
Mapping string Mapping name
Objects IEnumerable Objects to save
리턴 Dynamo

SaveProperty() 공개 메소드

Saves a property
public SaveProperty ( int Version, string Mapping, string ID, string PropertyName, IEnumerable Models ) : Dynamo
Version int Version
Mapping string Model name
ID string ID
PropertyName string Property name
Models IEnumerable Models
리턴 Dynamo

ToString() 공개 메소드

Outputs manager info as a string
public ToString ( ) : string
리턴 string

this() 공개 메소드

Gets the specified mapping
public this ( int Version, string Key ) : IAPIMapping
Version int API version number
Key string Name of the mapped type
리턴 IAPIMapping