Skip to content

Instantly share code, notes, and snippets.

@warpech
Last active December 21, 2015 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warpech/6228795 to your computer and use it in GitHub Desktop.
Save warpech/6228795 to your computer and use it in GitHub Desktop.
current view model
//Master.json
//-----------
{
LoggedInUser: "",
ApplicationPage: {
}
}
//PMail.json (ApplicationPage)
//----------------------------
{
Mailboxes: [{
Name: ""
}],
FocusedMailbox: {
Name: ""
},
Mails: [{
From: {
Address: ""
},
Subject: "",
Uri: ""
}],
FocusedMail: {}
}
//MailPage.json (FocusedMail)
//---------------------------
{
Date: "",
From: {
Address$: ""
},
To: {
Address$: "",
Options: [{
Address: ""
}]
},
Subject$: "",
Content$: "",
Send$: null,
Discard$: null
}
//Master.json
//-----------
{
LoggedInUser: "",
ApplicationPage: {
}
}
//PMail.json (ApplicationPage)
//----------------------------
{
Mailboxes: [{
Name: ""
}],
FocusedMailbox: {
Name: ""
},
Threads: [{
Date: "",
From: {
Address: ""
},
Subject: "",
Uri: "",
CountMails: ""
}],
FocusedThread: [{}] //array of MailPage
}
//MailPage.json (FocusedMail)
//---------------------------
{
Date: "",
From: {
Address$: ""
},
To: {
Address$: "",
Options: [{
Address: ""
}]
},
Subject$: "",
Content$: "",
Send$: null,
Discard$: null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment