C# Class Vidyano.ViewModel.PersistentObject

Inheritance: ViewModelBase
Mostra file Open project: stevehansen/vidyano_v1 Class Usage Examples

Private Properties

Property Type Description
PersistentObject System
ToServiceObject Newtonsoft.Json.Linq.JObject

Public Methods

Method Description
CancelEdit ( ) : void
Edit ( ) : void
GetAction ( string actionName ) : ActionBase
GetAttribute ( string attributeName ) : PersistentObjectAttribute
GetAttributeValue ( string attributeName ) : object
GetQuery ( string queryName ) : Query
RefreshAttributesAsync ( PersistentObjectAttribute attribute = null ) : System.Threading.Tasks.Task
RefreshFromResult ( PersistentObject result ) : System.Threading.Tasks.Task
Save ( ) : System.Threading.Tasks.Task
SetAttributeValue ( string attributeName, object value ) : void
SetNotification ( string notification, NotificationType notificationType = NotificationType.Error ) : void
this ( string name ) : PersistentObjectAttribute

Protected Methods

Method Description
CreateAttributesTab ( PersistentObjectAttribute attributes, string title, PersistentObject parent ) : PersistentObjectTabAttributes
CreateQueryTab ( Query query ) : PersistentObjectTabQuery
GetServiceProperties ( ) : string[]

Private Methods

Method Description
PersistentObject ( Newtonsoft.Json.Linq.JObject model ) : System
ToServiceObject ( ) : Newtonsoft.Json.Linq.JObject

Method Details

CancelEdit() public method

public CancelEdit ( ) : void
return void

CreateAttributesTab() protected method

protected CreateAttributesTab ( PersistentObjectAttribute attributes, string title, PersistentObject parent ) : PersistentObjectTabAttributes
attributes PersistentObjectAttribute
title string
parent PersistentObject
return PersistentObjectTabAttributes

CreateQueryTab() protected method

protected CreateQueryTab ( Query query ) : PersistentObjectTabQuery
query Query
return PersistentObjectTabQuery

Edit() public method

public Edit ( ) : void
return void

GetAction() public method

public GetAction ( string actionName ) : ActionBase
actionName string
return Vidyano.ViewModel.Actions.ActionBase

GetAttribute() public method

public GetAttribute ( string attributeName ) : PersistentObjectAttribute
attributeName string
return PersistentObjectAttribute

GetAttributeValue() public method

public GetAttributeValue ( string attributeName ) : object
attributeName string
return object

GetQuery() public method

public GetQuery ( string queryName ) : Query
queryName string
return Query

GetServiceProperties() protected method

protected GetServiceProperties ( ) : string[]
return string[]

RefreshAttributesAsync() public method

public RefreshAttributesAsync ( PersistentObjectAttribute attribute = null ) : System.Threading.Tasks.Task
attribute PersistentObjectAttribute
return System.Threading.Tasks.Task

RefreshFromResult() public method

public RefreshFromResult ( PersistentObject result ) : System.Threading.Tasks.Task
result PersistentObject
return System.Threading.Tasks.Task

Save() public method

public Save ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SetAttributeValue() public method

public SetAttributeValue ( string attributeName, object value ) : void
attributeName string
value object
return void

SetNotification() public method

public SetNotification ( string notification, NotificationType notificationType = NotificationType.Error ) : void
notification string
notificationType NotificationType
return void

this() public method

public this ( string name ) : PersistentObjectAttribute
name string
return PersistentObjectAttribute