-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroughdesign.txt
92 lines (73 loc) · 2.35 KB
/
roughdesign.txt
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Skip to content
This repository
Pull requests
Issues
Gist
@Abhiprayah
0
0
0
Harsh1-1/OOPDProject
Code
Issues 0
Pull requests 0
Wiki
Pulse
Graphs
OOPDProject/roughdesign.txt
949605a an hour from now
@Harsh1-1 Harsh1-1 rough design updated a lil bit
@Abhiprayah
@Harsh1-1
58 lines (48 sloc) 1.75 KB
//Naming conventions not followed. rough design
interface storable //this interface not needed for now, will use when db required
void store() //to handle storing the data
void update(field, newdata) //updation of data
class email() //just incase verification is added later;
string email; // will use update email method till now
constructor
abstract class user implement storable
constructor user(First Name,Last Name, Primary E-mail ID, Secondary E-mail ID, Password, UserID,
Postal Address, About Me, profile picture links[]);
string username; only getter
both getter and setter for the below
email primarymail;
email secondarymail;
string password;
string firstname;
string lastname;
string postaladdress;
string aboutme;
URL profilepic[3];
methods to handle the below variable
boolean has_quit;
mostly private variables
class enduser extends user
int karma;
string usertype;
constructor //calls super.constructor and its selfcode
class moderator extends user
static final string usertype;
string emergencycontact;
arraylist<string> qualifications;
constructor //calls super.constructor and its selfcode
class admin extends user
static final string usertype;
string emergencycontact;
constructor //calls super.constructor and its selfcode
class global //contains useful global variables
Static final string usertypes[] = {new, old, mod . .. ..etc}
static final string acceptedqualifications[] = {etc etc} //if possible use treeset
private constructor
//need improvements maybe, confusing
//currently designed for database and not file
class login
bool validate(email id, string password) //uses the below helper functions
private bool checkid()
private void retreivepassword()
interface state
state handle() //does the necessory work and returns the state to transition to
subclasses of state class
Contact GitHub API Training Shop Blog About
© 2016 GitHub, Inc. Terms Privacy Security Status Help