-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppQuestionModelsDocumentation
47 lines (38 loc) · 4.56 KB
/
AppQuestionModelsDocumentation
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
NewQuestionServerReceive - class object used to get question data back from the server
string author // question writer
string question_text // the actual question text or description
int timestamp // Receives a Date back from the server which could not be converted to a DateTime easily,
so I have it as an int for now, but we aren't currently using it.
string who_should_ask_the_question_permissions // something that the server sends back, I don't know what we should do with it.
string who_should_answer_the_question_permissions // same as above
string question_id // the identification string of the question. We use it to grab individual question data
and perform update operations
string version // a string that we get from the server that is based on the current commit or git version of the repository.
int last_modified // another Date that we get back from the server that looks purely numerical based,
so it might not make an easy conversion to DateTime. Still not being used though.
NewQuestionServerSend - class object used to package question data to send to the server
string question_text // the actual question text or description
string background // additional text field to provide a backgorund on the question text or description
string is_followup_to // questionID to link to another question
string question_id // the identification string of this particular question
string version // a string that we get from the server that is based on the current commit or git version of the repository.
Question - the class object we use for displaying questions in the application and manipulating data within the app
int UpVotes; // used purely to display upvotes on pages. There is no place to store these on the server side
int DownVotes; // same as above
string QuestionText // the actual question text or description
DateTime UploadTimestamp // should store the info we get back from the server's upload timestamp, but not being utilized yet
string Background // additional text field to provide a backgorund on the question text or description
bool AnswerAccepted // bool to see if the question has been answered and the author of the question has selected an answer?
string IsFollowupTo // questionID to link to another question
List<string> Keywords // tags to help with searching/filtering of questions later on
List<string> Category // tags to help with searching/filtering of questions later on
DateTime ExpiryDate // created in hopes to make use of the timestamp and last_modified fields from the server objects
string QuestionId // the identification string of this particular question
string Version // used to store the interim data from the version we get from the server when receiving
the question data to send an update to a question with
string QuestionSuggester // The citizen who suggested the question
ObservableCollection<Entity> QuestionAnswerers // The Authority, department, MPs, who are meant to answer
string QuestionAsker // The MPs or committee who are meant to ask the question
string LinkOrAnswer // The answer to the question that people can enter on the app, but I don't believe we do
anything with this information yet.
bool AlreadyUpvoted // used in the application to prevent a user from upvoting a single question multiple times