-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuestion.h
29 lines (26 loc) · 931 Bytes
/
Question.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
//
// Question.h
// unnamed
//
// Created by Bruce Ng on 2/17/15.
// Copyright (c) 2015 com.yahoo. All rights reserved.
//
#import <Parse/PFObject+Subclass.h>
#import "QuestionPhotos.h"
@interface Question : PFObject<PFSubclassing>
+ (NSString *)parseClassName;
@property (nonatomic, strong) NSString *objectId;
@property (nonatomic, strong) PFUser *user;
@property (nonatomic, strong) NSString *text;
@property (nonatomic, assign) NSInteger numAnswers;
@property (nonatomic, strong) NSArray *answerTexts;
@property (nonatomic, strong) NSArray *answerVoteCounts;
@property (nonatomic, assign) BOOL anonymous;
@property (nonatomic, assign) BOOL complete;
@property (nonatomic, assign) NSDate *createdAt;
@property (nonatomic, assign) BOOL isTextSurvey;
@property (nonatomic, strong) QuestionPhotos *questionPhotos;
- (id)initWithText:(NSString *)text;
- (NSArray *)createAnswersFromQuestion;
- (NSInteger)getTotalVotes;
@end