C# Class Ironman.Core.API.Manager.Manager

API manager
Afficher le fichier Open project: JaCraig/Craig-s-Utility-Library

Private Properties

Свойство Type Description
Error Dynamo
Success Dynamo

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Error ( string Message ) : Dynamo
Success ( string Message ) : Dynamo

Method Details

All() public méthode

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

Any() public méthode

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
Résultat Dynamo

CallService() public méthode

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.
Résultat Dynamo

Delete() public méthode

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
Résultat Dynamo

DeleteProperty() public méthode

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
Résultat Dynamo

GetProperty() public méthode

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
Résultat dynamic

Manager() public méthode

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.
Résultat System

PageCount() public méthode

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.
Résultat Dynamo

Paged() public méthode

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
Résultat IEnumerable

RegisterRoutes() public méthode

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).
Résultat void

Save() public méthode

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
Résultat Dynamo

SaveProperty() public méthode

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
Résultat Dynamo

ToString() public méthode

Outputs manager info as a string
public ToString ( ) : string
Résultat string

this() public méthode

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