-
Notifications
You must be signed in to change notification settings - Fork 7
/
VK.Controller.pas
49 lines (38 loc) · 998 Bytes
/
VK.Controller.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
unit VK.Controller;
interface
uses
VK.Handler, System.Json;
type
TVkController = class
private
FHandler: TVkHandler;
FGenerateException: Boolean;
procedure SetHandler(const Value: TVkHandler);
function GetVK: TObject;
procedure SetGenerateException(const Value: Boolean);
public
constructor Create(AHandler: TVkHandler);
property Handler: TVkHandler read FHandler write SetHandler;
property VK: TObject read GetVK;
property GenerateException: Boolean read FGenerateException write SetGenerateException;
end;
implementation
{ TVkController }
constructor TVkController.Create(AHandler: TVkHandler);
begin
inherited Create;
FHandler := AHandler;
end;
function TVkController.GetVK: TObject;
begin
Result := FHandler.Owner;
end;
procedure TVkController.SetGenerateException(const Value: Boolean);
begin
FGenerateException := Value;
end;
procedure TVkController.SetHandler(const Value: TVkHandler);
begin
FHandler := Value;
end;
end.