This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathAEContext.h
56 lines (42 loc) · 2.38 KB
/
AEContext.h
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
49
50
51
52
53
54
55
56
//
// AEContext.h
// AssistantExtensions
//
// Created by Kexik on 12/29/11.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SiriObjects.h"
/// Context of one assistant request/response. Used also for creating and sending Siri objects.
@interface AEContext : NSObject <SEContext> {
NSString* _referenceId;
BOOL _completed;
NSObject<SECommand>* _object;
BOOL _listenAfterSpeaking;
}
+(AEContext*)contextWithRefId:(NSString*)refId;
-(void)setObject:(NSObject<SECommand>*)obj;
-(SOObject*)createObjectDict:(NSString*)className group:(NSString*)group properties:(NSDictionary*)props;
-(SOObject*)createAssistantUtteranceView:(NSString*)text speakableText:(NSString*)speakableText;
-(SOObject*)createAssistantUtteranceView:(NSString*)text speakableText:(NSString*)speakableText dialogIdentifier:(NSString*)dialogIdentifier;
-(SOObject*)createSnippet:(NSString*)snippetClass properties:(NSDictionary*)props;
-(BOOL)sendAceObject:(NSString*)className group:(NSString*)group properties:(NSDictionary*)props;
-(BOOL)sendRequestCompleted;
-(BOOL)sendAddViews:(NSArray*)views;
-(BOOL)sendAddViews:(NSArray*)views dialogPhase:(NSString*)dialogPhase scrollToTop:(BOOL)scrollToTop temporary:(BOOL)temporary;
-(BOOL)sendAddViewsSnippet:(NSString*)snippetClass properties:(NSDictionary*)props;
-(BOOL)sendAddViewsSnippet:(NSString*)snippetClass properties:(NSDictionary*)props dialogPhase:(NSString*)dialogPhase scrollToTop:(BOOL)scrollToTop temporary:(BOOL)temporary;
-(BOOL)sendAddViewsUtteranceView:(NSString*)text;
-(BOOL)sendAddViewsUtteranceView:(NSString*)text speakableText:(NSString*)speakableText;
-(BOOL)sendAddViewsUtteranceView:(NSString*)text speakableText:(NSString*)speakableText dialogPhase:(NSString*)dialogPhase scrollToTop:(BOOL)scrollToTop temporary:(BOOL)temporary;
-(BOOL)sendAddViewsUtteranceView:(NSString*)text speakableText:(NSString*)speakableText dialogPhase:(NSString*)dialogPhase scrollToTop:(BOOL)scrollToTop temporary:(BOOL)temporary listenAfterSpeaking:(BOOL)listen;
-(SOLocationData)getLocationDataShowReflection:(BOOL)show;
-(BOOL)sendAceObjectToClient:(SOAceObject*)obj; //SINCE 1.0.2
-(BOOL)sendAceObjectToServer:(SOAceObject*)obj; //SINCE 1.0.2
-(void)blockRestOfRequest; //SINCE 1.0.2
-(BOOL)requestHasCompleted;
-(NSObject<SECommand>*)object;
-(NSString*)refId;
// private:
-(BOOL)wasListenAfterSpeaking;
@end