forked from conceptdev/iSOFlair
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TrilogySite.cs
61 lines (56 loc) · 1.66 KB
/
TrilogySite.cs
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
using System;
using System.Collections.Generic;
namespace iSOFlair
{
/// <summary>
/// Data about the four Stack Overflow sites
/// </summary>
public class TrilogySite
{
public string FlairUrl {get;set;}
public string ProfileUrl {get;set;}
public string PreferencesPrefix {get;set;}
public string Logo {get;set;}
public string SiteId {get;set;}
/// <summary>
/// TODO: allow only three, two or one views; not just hardcoded to four (future)
/// </summary>
public bool HasValue {get;set;}
public SOViewController ViewController{get;set;}
public TrilogySite ()
{}
public static List<TrilogySite> GetAll()
{
List<TrilogySite> list = new List<TrilogySite>();
list.Add(new TrilogySite{
FlairUrl="http://stackoverflow.com/users/flair/{0}.html"
, ProfileUrl="http://stackoverflow.com/users/{0}"
, PreferencesPrefix="so"
, Logo = "SOlogo.png"
, HasValue = false
});
list.Add(new TrilogySite{
FlairUrl="http://serverfault.com/users/flair/{0}.html"
, ProfileUrl="http://serverfault.com/users/{0}"
, PreferencesPrefix="sf"
, Logo = "SFlogo.png"
, HasValue = false
});
list.Add(new TrilogySite{
FlairUrl="http://superuser.com/users/flair/{0}.html"
, ProfileUrl="http://superuser.com/users/{0}"
, PreferencesPrefix="su"
, Logo = "SUlogo.png"
, HasValue = false
});
list.Add(new TrilogySite{
FlairUrl="http://meta.stackoverflow.com/users/flair/{0}.html"
, ProfileUrl="http://meta.stackoverflow.com/users/{0}"
, PreferencesPrefix="me"
, Logo = "MElogo.png"
, HasValue = false
});
return list;
}
}
}