C# Класс Ironman.Core.API.Manager.Manager

API manager
Показать файл Открыть проект

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