forked from uservoice/uservoice-ios-sdk
/
UVComment.h
36 lines (30 loc) · 1023 Bytes
/
UVComment.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
//
// UVComment.h
// UserVoice
//
// Created by UserVoice on 11/11/09.
// Copyright 2009 UserVoice Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UVBaseModel.h"
@class UVSuggestion;
@interface UVComment : UVBaseModel {
NSInteger commentId;
NSString *text;
NSString *userName;
NSInteger userId;
NSString *avatarUrl;
NSInteger karmaScore;
NSDate *createdAt;
}
@property (assign) NSInteger commentId;
@property (nonatomic, retain) NSString *text;
@property (nonatomic, retain) NSString *userName;
@property (assign) NSInteger userId;
@property (nonatomic, retain) NSString *avatarUrl;
@property (assign) NSInteger karmaScore;
@property (nonatomic, retain) NSDate *createdAt;
+ (id)getWithSuggestion:(UVSuggestion *)suggestion page:(NSInteger)page delegate:(id)delegate;
+ (id)createWithSuggestion:(UVSuggestion *)suggestion text:(NSString *)text delegate:(id)delegate;
- (id)flag:(NSString *)code suggestion:(UVSuggestion *)suggestion delegate:(id)delegate;
@end