forked from karelia/MockServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKMSTranscriptEntry.h
More file actions
49 lines (35 loc) · 1.02 KB
/
KMSTranscriptEntry.h
File metadata and controls
49 lines (35 loc) · 1.02 KB
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
// Created by Sam Deane on 18/12/2012.
// Copyright (c) 2012 Karelia Software. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
Represents an entry in the server's transcript.
As it runs, the server records each input, output, and command that it executes.
Unit tests can use this information, for example, to check that the client code is sending the right input.
*/
@interface KMSTranscriptEntry : NSObject
/**
Transcript types.
*/
typedef NS_ENUM(NSUInteger, KMSTranscriptEntryType)
{
KMSTranscriptInput,
KMSTranscriptOutput,
KMSTranscriptCommand
} ;
/**
The type of entry.
*/
@property (assign, nonatomic) KMSTranscriptEntryType type;
/**
The value of the transcript entry.
*/
@property (strong, nonatomic) id value;
/**
Returns a new transcript entry with a given type and value.
@param type The type of the new entry.
@param value The value of the new entry.
@return The new transcript entry.
*/
+ (KMSTranscriptEntry*)entryWithType:(KMSTranscriptEntryType)type value:(id)value;
@end