Namespace: PureMVC.Interfaces.IProxy
Interface IProxy
All Known Implementing Classes: - TProxy
public interface IProxy
Persistent- False
remarks- In PureMVC, IProxy implementors assume these responsibilities:Implement a common method which returns the name of the ProxyAdditionally, IProxys typically:Maintain references to one or more pieces of model dataProvide methods for manipulating that dataGenerate INotifications when their model data changesExpose their name as a public const called NAMEEncapsulate interaction with local or remote services used to fetch and persist model data
summary- The interface definition for a PureMVC Proxy
public function TValue |
GetData() The data of the proxy
|
public function string |
GetProxyName() The Proxy instance name
|
public Sub |
OnRegister() Called by the Model when the Proxy is registered
|
public Sub |
OnRemove() Called by the Model when the Proxy is removed
|
public Sub |
SetData(Value: TValue) |
Data
public Data: TValue
Type- TValue
Access- read/write
ProxyName
public ProxyName: string
Type- string
Access- read
GetData
public function GetData(): TValue
Reintroduce- False
Returns- TValue
summary- The data of the proxy
GetProxyName
public function GetProxyName(): string
Reintroduce- False
Returns- string
summary- The Proxy instance name
OnRegister
public procedure OnRegister()
Reintroduce- False
summary- Called by the Model when the Proxy is registered
OnRemove
public procedure OnRemove()
Reintroduce- False
summary- Called by the Model when the Proxy is removed
SetData
public procedure SetData(Value: TValue)
Reintroduce- False