forked from mitchgre/gregsList
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclasses.js
78 lines (62 loc) · 1.64 KB
/
classes.js
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
/*
This file will contain skeleton function classes specialized for this project.
*/
function posting(sid,title,url,location,company,source)
{
this.sid = sid || null; // id in sql
this.title = title || null;
this.url = url || null;
// this.user = null; // not needed since back end will handle this?
this.location = location || null; // location is ? city? state? (arbitrary)
this.company = company || null;
this.source = source || null;
}
function industry(sid,name)
{
this.sid = sid || null;
this.name = name || null;
}
function goal(sid,value)
{
this.sid = sid || null;
this.value = value || null;
}
function loc(sid,name)
{
this.sid = sid || null;
this.name = name || null;
}
function contact(sid,fname,lname,email,phone,facebook,linkedin,github)
{
this.sid = sid || null;
this.fname = fname || null;
this.lname = lname || null;
this.email = email || null;
this.phone = phone || null;
this.facebook = facebook || null;
this.linkedin = linkedin || null;
this.github = github || null;
}
function company(sid,name,url)
{
this.sid = sid || null;
this.name = name || null;
this.url = url || null;
}
function schedule(sid,name,description,location,contact,url,start,end)
{
this.sid = sid || null;
this.name = name || null;
this.description = description || null;
this.location = location || null;
this.contact = contact || null;
this.url = url || null;
this.start = start || null;
this.end = end || null;
}
function blog(sid,title,text)
{
this.sid = sid || null;
this.title = title || null;
this.text = text || null;
}