FoodCandy!

WebAccountService Class Reference

Managed web account services. More...

List of all members.


Public Member Functions

string Login (string email, string password)
 Login.
string LoginOpenId (string token, string[] names, string[] values)
 Login to an account with an OpenId.
string LoginMd5 (string emailaddress, string passwordhash)
 Login to an account using a verified e-mail address and a password hash. Using the password hash avoids transferring the actual password accross an unsecure network.
void VerifyBetaPassword (string betapassword)
 Verify beta password.
bool IsBetaPasswordSet ()
 Check whether a beta password is set.
int CreateAccount (string betapassword, string emailaddress, TransitAccount ta)
 Create an account.
int CreateAccountWithOpenId (string betapassword, string consumerurl, TransitAccount ta)
 Create an account with openid.
TransitOpenIdRedirect GetOpenIdRedirect (string openidurl, string returnurl)
 Get an OpenId redirect.
string VerifyOpenId (string token, string[] names, string[] values)
 Verify an OpenId.
int GetAccountsCount (string ticket)
 Get accounts count.
List< TransitAccount > GetAccounts (string ticket, ServiceQueryOptions options)
 Get accounts.
int GetAccountId (string ticket)
 Get account id.
TransitAccount GetAccount (string ticket, bool updatelastlogin)
 Get logged in account information. Also updates last login time on five minute intervals.
TransitAccount GetAdminAccount (string ticket)
 Get an administrative account.
TransitAccount GetAccountById (string ticket, int id)
 Get account information.
int CreateOrUpdateAccount (string ticket, TransitAccount t_instance)
 Create or update an account.
void DeleteAccount (string ticket, int id, string password)
 Delete an account.
TransitAccount FindByEmail (string ticket, string emailaddress)
 Find an account by e-mail address.
List< TransitAccount > FindAllByEmail (string ticket, string emailaddress, ServiceQueryOptions options)
 Find all accounts by e-mail address.
string CreateAccountWithInvitationAndLogin (int invitationid, string code, TransitAccount ta)
 Create an account with an e-mail invitation and login.
int CreateAccountWithInvitation (int invitationid, string code, TransitAccount ta)
 Create an account with an e-mail invitation.
void DeclineInvitation (int id, string code)
TransitAccountInvitation GetAccountInvitationByEmail (string ticket, int id, string email)
 Invite a person.
int CreateOrUpdateAccountInvitation (string ticket, TransitAccountInvitation invitation)
 Invite a person.
List< TransitAccountInvitation > GetAccountInvitationsByAccountId (string ticket, int id, ServiceQueryOptions options)
 Get account invitations.
int GetAccountInvitationsCountByAccountId (string ticket, int id)
 Get account invitations count by id.
List< TransitAccountInvitation > GetAccountInvitations (string ticket, ServiceQueryOptions options)
 Get all account invitations.
int GetAccountInvitationsCount (string ticket)
 Get all account invitations count.
TransitAccountInvitation GetAccountInvitationById (string ticket, int id)
 Get account invitation by id.
TransitAccountInvitation GetAccountInvitationByIdAndCode (string ticket, int id, string code)
 Get account invitation by id and code.
void DeleteAccountInvitation (string ticket, int id)
 Delete a invitation.
void PromoteAdministrator (string ticket, int id)
 Promote a user to an administrator.
void DemoteAdministrator (string ticket, int id)
 Demote a user to from an administrator.
string Impersonate (string ticket, int id)
 Impersonate an account (a user).
void ChangePassword (string ticket, int accountid, string oldpassword, string newpassword)
 Change password.
void ChangePasswordMd5 (string ticket, int accountid, string oldpasswordhash, string newpassword)
 Change password.
bool IsPasswordValid (string ticket, int accountid, string password)
 Check password.
bool IsPasswordValidMd5 (string ticket, int accountid, string password)
 Check password with an Md5 hash.
void ResetPassword (string emailaddress, DateTime dateofbirth)
 Reset password.
int CreateOrUpdateAccountEmail (string ticket, TransitAccountEmail tae)
 Create or update an account e-mail.
int GetAccountEmailsCount (string ticket, int id)
 Get account e-mails count.
List< TransitAccountEmail > GetAccountEmails (string ticket, int id, ServiceQueryOptions options)
 Get account e-mails.
TransitAccountEmail GetAccountEmailById (string ticket, int id)
 Get an account e-mail by id.
void DeleteAccountEmail (string ticket, int id)
 Delete an account e-mail.
string VerifyAccountEmail (string password, int id, string code)
 Verify an e-mail.
void ConfirmAccountEmail (string ticket, int id)
 Re-send a confirmation for an e-mail address.
bool HasVerifiedEmail (string ticket, int id)
 Check whether a user has a verified e-mail address.
string GetActiveEmailAddress (string ticket, int id)
 Return an active e-mail address.
int GetAccountEmailConfirmationsCount (string ticket, int id)
 Get account e-mail confirmations count.
List< TransitAccountEmailConfirmation > GetAccountEmailConfirmations (string ticket, int id, ServiceQueryOptions options)
 Get account e-mail confirmations.
TransitAccountEmailConfirmation GetAccountEmailConfirmationById (string ticket, int id)
 Get an account e-mail confirmation by id.
void DeleteAccountEmailConfirmation (string ticket, int id)
 Delete an account e-mail confirmation.
List< TransitAccountOpenId > GetAccountOpenIds (string ticket, int id, ServiceQueryOptions options)
 Get account openids.
int GetAccountOpenIdsCount (string ticket, int id)
void DeleteAccountOpenId (string ticket, int id)
 Delete an openid.
int CreateOrUpdateAccountOpenId (string ticket, TransitAccountOpenId openid)
 Add an openid.
TransitAccountOpenId GetAccountOpenIdById (string ticket, int id)
 Get an account openid.
List< TransitAccountActivity > SearchAccounts (string ticket, string s, ServiceQueryOptions options)
 Search accounts.
int SearchAccountsCount (string ticket, string s)
 Return the number of accounts matching a query.
int CreateOrUpdateAccountPropertyGroup (string ticket, TransitAccountPropertyGroup pg)
 Create or update a property group.
TransitAccountPropertyGroup GetAccountPropertyGroupById (string ticket, int id)
 Get a property group.
int GetAccountPropertyGroupsCount (string ticket)
 Get all property groups count.
List< TransitAccountPropertyGroup > GetAccountPropertyGroups (string ticket, ServiceQueryOptions options)
 Get all property groups.
void DeleteAccountPropertyGroup (string ticket, int id)
 Delete a property group
Parameters:
ticket authentication ticket
id id
.
int CreateOrUpdateAccountProperty (string ticket, TransitAccountProperty t_instance)
 Create or update an account property.
TransitAccountProperty GetAccountPropertyById (string ticket, int id)
 Get an account property.
int GetAccountPropertiesCount (string ticket, int gid)
 Get all account properties count.
List< TransitAccountProperty > GetAccountProperties (string ticket, int gid, ServiceQueryOptions options)
 Get all account properties.
void DeleteAccountProperty (string ticket, int id)
 Delete an account property.
Parameters:
ticket authentication ticket
id id
.
List< TransitAccount > GetAccountsByPropertyValue (string ticket, string groupname, string propertyname, string propertyvalue, ServiceQueryOptions options)
 Get accounts that match a property value by name.
int GetAccountsByPropertyValueCount (string ticket, string groupname, string propertyname, string propertyvalue)
 Get the number of accounts that match a property value by name.
TransitAccountPropertyValue GetAccountPropertyValueByName (string ticket, int accountid, string groupname, string propertyname)
 Get a account property value by name.
int CreateOrUpdateAccountPropertyValue (string ticket, TransitAccountPropertyValue propertyvalue)
 Create or update an account property value.
TransitAccountPropertyValue GetAccountPropertyValueById (string ticket, int id)
 Get an account property value.
List< TransitAccountPropertyValue > GetAccountPropertyValues (string ticket, int id, int groupid, ServiceQueryOptions options)
 Get account property values.
int GetAccountPropertyValuesCount (string ticket, int id, int groupid)
 Get account property values count.
List< TransitAccountPropertyValue > GetAllAccountPropertyValues (string ticket, int accountid, int groupid)
 Get all account property values, including unfilled ones.
void DeleteAccountPropertyValue (string ticket, int id)
 Delete an account property value.
Parameters:
ticket authentication ticket
id id
.
int CreateOrUpdateAccountAttribute (string ticket, TransitAccountAttribute attribute)
 Create or update an account attribute.
TransitAccountAttribute GetAccountAttributeById (string ticket, int id)
 Get account attributes.
int GetAccountAttributesCount (string ticket, int id)
 Get account attributes count.
List< TransitAccountAttribute > GetAccountAttributes (string ticket, int id, ServiceQueryOptions options)
 Get account attributes.
void DeleteAccountAttribute (string ticket, int id)
 Delete an account attribute.
Parameters:
ticket authentication ticket
id id
.
int GetAccountRedirectsCount (string ticket, int id)
 Get account redirects count by account id.
int GetAllAccountRedirectsCount (string ticket)
 Get all account redirects count.
List< TransitAccountRedirect > GetAccountRedirects (string ticket, int id, ServiceQueryOptions options)
 Get account redirects.
List< TransitAccountRedirect > GetAllAccountRedirects (string ticket, ServiceQueryOptions options)
 Get all account redirects.
TransitAccountRedirect GetAccountRedirectById (string ticket, int id)
 Get account redirect by id.
TransitAccountRedirect GetAccountRedirectBySourceUri (string ticket, int id, string uri)
 Get account redirect by source uri.
TransitAccountRedirect GetAccountRedirectByTargetUri (string ticket, int id, string uri)
 Get account redirect by target uri.
int CreateOrUpdateAccountRedirect (string ticket, TransitAccountRedirect redirect)
 Create or update a redirect.
void DeleteAccountRedirect (string ticket, int id)
 Delete a redirect.
int CreateOrUpdateAccountAddress (string ticket, TransitAccountAddress t_instance)
 Create or update an account address.
TransitAccountAddress GetAccountAddressById (string ticket, int id)
 Get an account address.
int GetAccountAddressesCount (string ticket, int id)
 Get all account addresses count.
List< TransitAccountAddress > GetAccountAddresses (string ticket, int id, ServiceQueryOptions options)
 Get all account addresses.
void DeleteAccountAddress (string ticket, int id)
 Delete an account address.
Parameters:
ticket authentication ticket
id id
.
int CreateOrUpdateAccountWebsite (string ticket, TransitAccountWebsite t_instance)
 Create or update an account website.
TransitAccountWebsite GetAccountWebsiteById (string ticket, int id)
 Get an account website.
int GetAccountWebsitesCount (string ticket, int id)
 Get all account websites count.
List< TransitAccountWebsite > GetAccountWebsites (string ticket, int id, ServiceQueryOptions options)
 Get all account websites.
void DeleteAccountWebsite (string ticket, int id)
 Delete an account website.
Parameters:
ticket authentication ticket
id id
.
int CreateOrUpdateAccountPicture (string ticket, TransitAccountPicture accountpicture)
 Create or update a account picture.
TransitAccountPicture GetAccountPictureById (string ticket, int id)
 Get a account picture.
TransitAccountPicture GetAccountPictureIfModifiedSinceById (string ticket, int id, DateTime ifModifiedSince)
 Get account picture picture if modified since.
int GetAccountPicturesCount (string ticket, int id, AccountPicturesQueryOptions qopt)
 Get account pictures count.
List< TransitAccountPicture > GetAccountPictures (string ticket, int id, AccountPicturesQueryOptions qopt, ServiceQueryOptions options)
 Get all account pictures.
void DeleteAccountPicture (string ticket, int id)
 Delete a account picture
Parameters:
ticket authentication ticket
id id
.
int GetAccountSurveyAnswersCount (string ticket, int id, int surveyid)
 Get account survey answers count.
List< TransitAccountSurveyAnswer > GetAccountSurveyAnswers (string ticket, int id, int surveyid, ServiceQueryOptions options)
 Get account survey answers.
int GetAccountSurveyAnswersCountByQuestionId (string ticket, int id)
 Get survey answers count for a single question.
List< TransitAccountSurveyAnswer > GetAccountSurveyAnswersByQuestionId (string ticket, int id, ServiceQueryOptions options)
 Get survey answers for a single question.
TransitAccountSurveyAnswer GetAccountSurveyAnswerById (string ticket, int id)
 Get account survey answer by id.
int CreateOrUpdateAccountSurveyAnswer (string ticket, TransitAccountSurveyAnswer answer)
 Create or update a survey answer.
void DeleteAccountSurveyAnswer (string ticket, int id)
 Delete a survey answer.
List< TransitSurvey > GetAccountSurveysById (string ticket, int id, ServiceQueryOptions options)
 Get surveys answered by an account.
void CreateAccountSystemMessageFolders (string ticket, int id)
 Create account system folders.
List< TransitAccountMessageFolder > GetAccountMessageFolders (string ticket, int id, ServiceQueryOptions options)
 Get account message folders.
int GetAccountMessageFoldersCount (string ticket, int id)
 Get account message folders count.
TransitAccountMessageFolder GetAccountMessageFolderById (string ticket, int id)
 Get account message folder by id.
int CreateOrUpdateAccountMessageFolder (string ticket, TransitAccountMessageFolder messagefolder)
 Add a message folder.
void DeleteAccountMessageFolder (string ticket, int id)
 Delete a message folder.
TransitAccountMessageFolder GetAccountMessageSystemFolder (string ticket, int id, string folder)
 Get account message folder by id.
int GetAccountMessagesCount (string ticket, int folderid)
 Get account messages count.
List< TransitAccountMessage > GetAccountMessages (string ticket, int folderid, ServiceQueryOptions options)
 Get account messages.
TransitAccountMessage GetAccountMessageById (string ticket, int id)
 Get account message by id.
int CreateOrUpdateAccountMessage (string ticket, TransitAccountMessage message)
 Create or update a message.
void DeleteAccountMessage (string ticket, int id)
 Delete a message.
void DeleteAccountMessagesByFolder (string ticket, int folderid)
 Delete messages in a folder.
void MoveAccountMessageToFolderById (string ticket, int messageid, int folderid)
 Move a message.
void MoveAccountMessageToFolder (string ticket, int id, int messageid, string folder)
 Move a message.
int CreateOrUpdateAccountEmailMessage (string ticket, TransitAccountEmailMessage AccountEmailMessage)
 Create or update a AccountEmailMessage.
TransitAccountEmailMessage GetAccountEmailMessageById (string ticket, int id)
 Get a AccountEmailMessage.
List< TransitAccountEmailMessage > GetAccountEmailMessages (string ticket, ServiceQueryOptions options)
 Get all account e-mail messages.
int GetAccountEmailMessagesCount (string ticket)
 Get all account e-mail messages count.
void DeleteAccountEmailMessage (string ticket, int id)
 Delete an account e-mail message.
Parameters:
ticket authentication ticket
id id
.
int CreateOrUpdateAccountFlagType (string ticket, TransitAccountFlagType flagtype)
 Create or update an flag type.
TransitAccountFlagType GetAccountFlagTypeById (string ticket, int id)
 Get an flag type.
List< TransitAccountFlagType > GetAccountFlagTypes (string ticket, ServiceQueryOptions options)
 Get all flag types.
int GetAccountFlagTypesCount (string ticket)
 Get all flag types count.
void DeleteAccountFlagType (string ticket, int id)
 Delete an flag type
Parameters:
ticket authentication ticket
id id
.
int CreateOrUpdateAccountFlag (string ticket, TransitAccountFlag flag)
 Flag an account.
TransitAccountFlag GetAccountFlagById (string ticket, int id)
 Get a flagged account.
List< TransitAccountFlag > GetAccountFlags (string ticket, ServiceQueryOptions options)
 Get all account flags.
int GetAccountFlagsCount (string ticket)
 Get all account flags count.
List< TransitAccountFlag > GetAccountFlagsByAccountId (string ticket, int id, ServiceQueryOptions options)
 Get all account flags by account id.
int GetAccountFlagsByAccountIdCount (string ticket, int id)
 Get all account flags count by account id.
List< TransitAccountFlag > GetAccountFlagsByFlaggedAccountId (string ticket, int id, ServiceQueryOptions options)
 Get all account flags by flagged account id.
int GetAccountFlagsByFlaggedAccountIdCount (string ticket, int id)
 Get all account flags count by flagged account id.
void DeleteAccountFlag (string ticket, int id)
 Delete a flag
Parameters:
ticket authentication ticket
id id
.

Protected Member Functions

IList< AccountInternalSearchAccounts (ISession session, string s, ServiceQueryOptions options)

Detailed Description

Managed web account services.


Member Function Documentation

void ChangePassword string  ticket,
int  accountid,
string  oldpassword,
string  newpassword
 

Change password.

Parameters:
ticket athentication ticket
oldpassword old password
newpassword new password
accountid account id

void ChangePasswordMd5 string  ticket,
int  accountid,
string  oldpasswordhash,
string  newpassword
 

Change password.

Parameters:
ticket athentication ticket
oldpassword old password
newpassword new password
accountid account id

void ConfirmAccountEmail string  ticket,
int  id
 

Re-send a confirmation for an e-mail address.

Parameters:
ticket authentication ticket
email transit e-mail

int CreateAccount string  betapassword,
string  emailaddress,
TransitAccount  ta
 

Create an account.

Parameters:
name user name
emailaddress e-mail address
ta transit account information
Returns:
account id

void CreateAccountSystemMessageFolders string  ticket,
int  id
 

Create account system folders.

Parameters:
ticket authentication ticket
Returns:
transit account message folders

int CreateAccountWithInvitation int  invitationid,
string  code,
TransitAccount  ta
 

Create an account with an e-mail invitation.

Parameters:
invitationid invitation id
code code
ta transit account information
Returns:
account id

string CreateAccountWithInvitationAndLogin int  invitationid,
string  code,
TransitAccount  ta
 

Create an account with an e-mail invitation and login.

Parameters:
invitationid 
code 
ta 
Returns:

int CreateAccountWithOpenId string  betapassword,
string  consumerurl,
TransitAccount  ta
 

Create an account with openid.

Parameters:
ta transit account informatio
Returns:
account id

int CreateOrUpdateAccount string  ticket,
TransitAccount  t_instance
 

Create or update an account.

Parameters:
ticket authentication ticket
type transit account

int CreateOrUpdateAccountAddress string  ticket,
TransitAccountAddress  t_instance
 

Create or update an account address.

Parameters:
ticket authentication ticket
property transit account address

int CreateOrUpdateAccountAttribute string  ticket,
TransitAccountAttribute  attribute
 

Create or update an account attribute.

Parameters:
ticket authentication ticket
type transit account attribute

int CreateOrUpdateAccountEmail string  ticket,
TransitAccountEmail  tae
 

Create or update an account e-mail.

Parameters:
ticket authentication ticket
tae transit account e-mail

int CreateOrUpdateAccountEmailMessage string  ticket,
TransitAccountEmailMessage  AccountEmailMessage
 

Create or update a AccountEmailMessage.

Parameters:
ticket authentication ticket
AccountEmailMessage transit AccountEmailMessage

int CreateOrUpdateAccountFlag string  ticket,
TransitAccountFlag  flag
 

Flag an account.

Parameters:
ticket authentication ticket
flag transit flag

int CreateOrUpdateAccountFlagType string  ticket,
TransitAccountFlagType  flagtype
 

Create or update an flag type.

Parameters:
ticket authentication ticket
flagtype transit flag type

int CreateOrUpdateAccountInvitation string  ticket,
TransitAccountInvitation  invitation
 

Invite a person.

Parameters:
ticket authentication ticket
invitation transit invitation

int CreateOrUpdateAccountMessage string  ticket,
TransitAccountMessage  message
 

Create or update a message.

Parameters:
ticket authentication ticket
message new message

int CreateOrUpdateAccountMessageFolder string  ticket,
TransitAccountMessageFolder  messagefolder
 

Add a message folder.

Parameters:
ticket authentication ticket
message folder new message folder

int CreateOrUpdateAccountOpenId string  ticket,
TransitAccountOpenId  openid
 

Add an openid.

Parameters:
ticket authentication ticket
openid transit openid

int CreateOrUpdateAccountPicture string  ticket,
TransitAccountPicture  accountpicture
 

Create or update a account picture.

Parameters:
ticket authentication ticket
accountpicture transit account picture

int CreateOrUpdateAccountProperty string  ticket,
TransitAccountProperty  t_instance
 

Create or update an account property.

Parameters:
ticket authentication ticket
property transit account property

int CreateOrUpdateAccountPropertyGroup string  ticket,
TransitAccountPropertyGroup  pg
 

Create or update a property group.

Parameters:
ticket authentication ticket
PropertyGroup transit property group

int CreateOrUpdateAccountPropertyValue string  ticket,
TransitAccountPropertyValue  propertyvalue
 

Create or update an account property value.

Parameters:
ticket authentication ticket
type transit account property value

int CreateOrUpdateAccountRedirect string  ticket,
TransitAccountRedirect  redirect
 

Create or update a redirect.

Parameters:
ticket authentication ticket
redirect new redirect

int CreateOrUpdateAccountSurveyAnswer string  ticket,
TransitAccountSurveyAnswer  answer
 

Create or update a survey answer.

Parameters:
ticket authentication ticket
answer survey answer

int CreateOrUpdateAccountWebsite string  ticket,
TransitAccountWebsite  t_instance
 

Create or update an account website.

Parameters:
ticket authentication ticket
property transit account website

void DeleteAccount string  ticket,
int  id,
string  password
 

Delete an account.

Parameters:
ticket authentication ticket
id account to delete
password current account password

void DeleteAccountEmail string  ticket,
int  id
 

Delete an account e-mail.

Parameters:
ticket 
id 
Returns:

void DeleteAccountEmailConfirmation string  ticket,
int  id
 

Delete an account e-mail confirmation.

Parameters:
ticket 
id 
Returns:

void DeleteAccountInvitation string  ticket,
int  id
 

Delete a invitation.

Parameters:
ticket authentication ticket
invitationid invitation id

void DeleteAccountMessage string  ticket,
int  id
 

Delete a message.

Parameters:
ticket authentication ticket
messageid message id

void DeleteAccountMessageFolder string  ticket,
int  id
 

Delete a message folder.

Parameters:
ticket authentication ticket
messagefolderid message folder id

void DeleteAccountMessagesByFolder string  ticket,
int  folderid
 

Delete messages in a folder.

Parameters:
ticket authentication ticket
folderid folder id

void DeleteAccountOpenId string  ticket,
int  id
 

Delete an openid.

Parameters:
ticket authentication ticket
id openid id

void DeleteAccountRedirect string  ticket,
int  id
 

Delete a redirect.

Parameters:
ticket authentication ticket
redirectid redirect id

void DeleteAccountSurveyAnswer string  ticket,
int  id
 

Delete a survey answer.

Parameters:
ticket authentication ticket
surveyanswerid survey answer id

void DemoteAdministrator string  ticket,
int  id
 

Demote a user to from an administrator.

Parameters:
ticket authentication ticket
id user id
Returns:

List<TransitAccount> FindAllByEmail string  ticket,
string  emailaddress,
ServiceQueryOptions  options
 

Find all accounts by e-mail address.

Parameters:
emailaddress e-mail address
Returns:
authentication ticket for the current session

TransitAccount FindByEmail string  ticket,
string  emailaddress
 

Find an account by e-mail address.

Parameters:
emailaddress verified e-mail address
Returns:
authentication ticket for the current session

TransitAccount GetAccount string  ticket,
bool  updatelastlogin
 

Get logged in account information. Also updates last login time on five minute intervals.

Parameters:
ticket authentication ticket
Returns:
transit account

TransitAccountAddress GetAccountAddressById string  ticket,
int  id
 

Get an account address.

Returns:
transit account address

List<TransitAccountAddress> GetAccountAddresses string  ticket,
int  id,
ServiceQueryOptions  options
 

Get all account addresses.

Returns:
list of transit addresses

int GetAccountAddressesCount string  ticket,
int  id
 

Get all account addresses count.

Returns:
number of account addresses

TransitAccountAttribute GetAccountAttributeById string  ticket,
int  id
 

Get account attributes.

Returns:
transit account attribute

List<TransitAccountAttribute> GetAccountAttributes string  ticket,
int  id,
ServiceQueryOptions  options
 

Get account attributes.

Returns:
list of account attributes

int GetAccountAttributesCount string  ticket,
int  id
 

Get account attributes count.

Returns:
number of account attributes

TransitAccount GetAccountById string  ticket,
int  id
 

Get account information.

Parameters:
id account id
Returns:
transit account

TransitAccountEmail GetAccountEmailById string  ticket,
int  id
 

Get an account e-mail by id.

Parameters:
ticket 
id 
Returns:

TransitAccountEmailConfirmation GetAccountEmailConfirmationById string  ticket,
int  id
 

Get an account e-mail confirmation by id.

Parameters:
ticket 
id 
Returns:

List<TransitAccountEmailConfirmation> GetAccountEmailConfirmations string  ticket,
int  id,
ServiceQueryOptions  options
 

Get account e-mail confirmations.

Parameters:
ticket authentication ticket
Returns:
transit e-mail confirmation

int GetAccountEmailConfirmationsCount string  ticket,
int  id
 

Get account e-mail confirmations count.

Parameters:
ticket authentication ticket
Returns:
number of account e-mail confirmations

TransitAccountEmailMessage GetAccountEmailMessageById string  ticket,
int  id
 

Get a AccountEmailMessage.

Returns:
transit AccountEmailMessage

List<TransitAccountEmailMessage> GetAccountEmailMessages string  ticket,
ServiceQueryOptions  options
 

Get all account e-mail messages.

Returns:
list of transit account e-mail messages

int GetAccountEmailMessagesCount string  ticket  ) 
 

Get all account e-mail messages count.

Returns:
number of account e-mail messages

List<TransitAccountEmail> GetAccountEmails string  ticket,
int  id,
ServiceQueryOptions  options
 

Get account e-mails.

Parameters:
ticket authentication ticket
Returns:
transit e-mail

int GetAccountEmailsCount string  ticket,
int  id
 

Get account e-mails count.

Parameters:
ticket authentication ticket
Returns:
number of account e-mails

TransitAccountFlag GetAccountFlagById string  ticket,
int  id
 

Get a flagged account.

Returns:
transit flag

List<TransitAccountFlag> GetAccountFlags string  ticket,
ServiceQueryOptions  options
 

Get all account flags.

Returns:
list of transit flags

List<TransitAccountFlag> GetAccountFlagsByAccountId string  ticket,
int  id,
ServiceQueryOptions  options
 

Get all account flags by account id.

Returns:
list of transit flags

int GetAccountFlagsByAccountIdCount string  ticket,
int  id
 

Get all account flags count by account id.

Returns:
number of transit flags

List<TransitAccountFlag> GetAccountFlagsByFlaggedAccountId string  ticket,
int  id,
ServiceQueryOptions  options
 

Get all account flags by flagged account id.

Returns:
list of transit flags

int GetAccountFlagsByFlaggedAccountIdCount string  ticket,
int  id
 

Get all account flags count by flagged account id.

Returns:
number of transit flags

int GetAccountFlagsCount string  ticket  ) 
 

Get all account flags count.

Returns:
number of transit flags

TransitAccountFlagType GetAccountFlagTypeById string  ticket,
int  id
 

Get an flag type.

Returns:
transit flag type

List<TransitAccountFlagType> GetAccountFlagTypes string  ticket,
ServiceQueryOptions  options
 

Get all flag types.

Returns:
list of transit flag types

int GetAccountFlagTypesCount string  ticket  ) 
 

Get all flag types count.

Returns:
list of transit flag types

int GetAccountId string  ticket  ) 
 

Get account id.

Parameters:
ticket authentication ticket previously obtained from SnCore::WebAccountService::Login or SnCore::WebAccountService::LoginMd5
Returns:
account id

TransitAccountInvitation GetAccountInvitationByEmail string  ticket,
int  id,
string  email
 

Invite a person.

Parameters:
ticket authentication ticket
invitation transit invitation

TransitAccountInvitation GetAccountInvitationById string  ticket,
int  id
 

Get account invitation by id.

Parameters:
ticket authentication ticket
id invitation id
Returns:
transit account invitation

TransitAccountInvitation GetAccountInvitationByIdAndCode string  ticket,
int  id,
string  code
 

Get account invitation by id and code.

Parameters:
ticket authentication ticket
id invitation id
Returns:
transit account invitation

List<TransitAccountInvitation> GetAccountInvitations string  ticket,
ServiceQueryOptions  options
 

Get all account invitations.

Returns:
transit account invitations

List<TransitAccountInvitation> GetAccountInvitationsByAccountId string  ticket,
int  id,
ServiceQueryOptions  options
 

Get account invitations.

Parameters:
id account id
Returns:
transit account invitations

int GetAccountInvitationsCount string  ticket  ) 
 

Get all account invitations count.

Returns:
number of outstanding account invitations

int GetAccountInvitationsCountByAccountId string  ticket,
int  id
 

Get account invitations count by id.

Parameters:
id account id
Returns:
number of outstanding account invitations

TransitAccountMessage GetAccountMessageById string  ticket,
int  id
 

Get account message by id.

Parameters:
ticket authentication ticket
id message id
Returns:
transit account messages

TransitAccountMessageFolder GetAccountMessageFolderById string  ticket,
int  id
 

Get account message folder by id.

Parameters:
ticket authentication ticket
id message folder id
Returns:
transit account message folders

List<TransitAccountMessageFolder> GetAccountMessageFolders string  ticket,
int  id,
ServiceQueryOptions  options
 

Get account message folders.

Parameters:
id account id
Returns:
transit account message folders

int GetAccountMessageFoldersCount string  ticket,
int  id
 

Get account message folders count.

Parameters:
id account id
Returns:
transit account message folders

List<TransitAccountMessage> GetAccountMessages string  ticket,
int  folderid,
ServiceQueryOptions  options
 

Get account messages.

Returns:
transit account messages

int GetAccountMessagesCount string  ticket,
int  folderid
 

Get account messages count.

Returns:
transit account messages count

TransitAccountMessageFolder GetAccountMessageSystemFolder string  ticket,
int  id,
string  folder
 

Get account message folder by id.

Parameters:
ticket authentication ticket
folder message folder name
Returns:
transit account message folder

TransitAccountOpenId GetAccountOpenIdById string  ticket,
int  id
 

Get an account openid.

Parameters:
ticket 
id 
Returns:

List<TransitAccountOpenId> GetAccountOpenIds string  ticket,
int  id,
ServiceQueryOptions  options
 

Get account openids.

Parameters:
ticket authentication ticket
Returns:
transit account openids

TransitAccountPicture GetAccountPictureById string  ticket,
int  id
 

Get a account picture.

Returns:
transit account picture

TransitAccountPicture GetAccountPictureIfModifiedSinceById string  ticket,
int  id,
DateTime  ifModifiedSince
 

Get account picture picture if modified since.

Parameters:
id account picture id
ticket authentication ticket
ifModifiedSince last update date/time
Returns:
transit picture

List<TransitAccountPicture> GetAccountPictures string  ticket,
int  id,
AccountPicturesQueryOptions  qopt,
ServiceQueryOptions  options
 

Get all account pictures.

Parameters:
placeid place id
Returns:
list of transit account pictures

List<TransitAccountProperty> GetAccountProperties string  ticket,
int  gid,
ServiceQueryOptions  options
 

Get all account properties.

Returns:
list of transit properties

int GetAccountPropertiesCount string  ticket,
int  gid
 

Get all account properties count.

Returns:
number of account properties

TransitAccountProperty GetAccountPropertyById string  ticket,
int  id
 

Get an account property.

Returns:
transit account property

TransitAccountPropertyGroup GetAccountPropertyGroupById string  ticket,
int  id
 

Get a property group.

Returns:
transit property group

List<TransitAccountPropertyGroup> GetAccountPropertyGroups string  ticket,
ServiceQueryOptions  options
 

Get all property groups.

Returns:
list of transit property groups

int GetAccountPropertyGroupsCount string  ticket  ) 
 

Get all property groups count.

Returns:
number of transit property groups

TransitAccountPropertyValue GetAccountPropertyValueById string  ticket,
int  id
 

Get an account property value.

Returns:
transit account property value

TransitAccountPropertyValue GetAccountPropertyValueByName string  ticket,
int  accountid,
string  groupname,
string  propertyname
 

Get a account property value by name.

Returns:
transit account property value

List<TransitAccountPropertyValue> GetAccountPropertyValues string  ticket,
int  id,
int  groupid,
ServiceQueryOptions  options
 

Get account property values.

Returns:
list of account property values

int GetAccountPropertyValuesCount string  ticket,
int  id,
int  groupid
 

Get account property values count.

Returns:
number of account property values

TransitAccountRedirect GetAccountRedirectById string  ticket,
int  id
 

Get account redirect by id.

Parameters:
ticket authentication ticket
id redirect id
Returns:
transit account redirect

TransitAccountRedirect GetAccountRedirectBySourceUri string  ticket,
int  id,
string  uri
 

Get account redirect by source uri.

Parameters:
ticket authentication ticket
Returns:
transit account redirect

TransitAccountRedirect GetAccountRedirectByTargetUri string  ticket,
int  id,
string  uri
 

Get account redirect by target uri.

Parameters:
ticket authentication ticket
Returns:
transit account redirect

List<TransitAccountRedirect> GetAccountRedirects string  ticket,
int  id,
ServiceQueryOptions  options
 

Get account redirects.

Parameters:
id account id
Returns:
transit account redirects

List<TransitAccount> GetAccounts string  ticket,
ServiceQueryOptions  options
 

Get accounts.

Returns:
accounts count

List<TransitAccount> GetAccountsByPropertyValue string  ticket,
string  groupname,
string  propertyname,
string  propertyvalue,
ServiceQueryOptions  options
 

Get accounts that match a property value by name.

Returns:
transit accounts

int GetAccountsByPropertyValueCount string  ticket,
string  groupname,
string  propertyname,
string  propertyvalue
 

Get the number of accounts that match a property value by name.

Returns:
transit accounts

int GetAccountsCount string  ticket  ) 
 

Get accounts count.

Returns:
accounts count

TransitAccountSurveyAnswer GetAccountSurveyAnswerById string  ticket,
int  id
 

Get account survey answer by id.

Parameters:
ticket authentication ticket
id survey answer id
Returns:
transit account survey answers

List<TransitAccountSurveyAnswer> GetAccountSurveyAnswers string  ticket,
int  id,
int  surveyid,
ServiceQueryOptions  options
 

Get account survey answers.

Parameters:
id account id
surveyid survey id
Returns:
transit account survey answers

List<TransitAccountSurveyAnswer> GetAccountSurveyAnswersByQuestionId string  ticket,
int  id,
ServiceQueryOptions  options
 

Get survey answers for a single question.

Parameters:
id question id
Returns:
transit account survey answers

int GetAccountSurveyAnswersCount string  ticket,
int  id,
int  surveyid
 

Get account survey answers count.

Parameters:
id account id
surveyid survey id
Returns:
number of answers filled

int GetAccountSurveyAnswersCountByQuestionId string  ticket,
int  id
 

Get survey answers count for a single question.

Parameters:
id question id
Returns:
answers count

List<TransitSurvey> GetAccountSurveysById string  ticket,
int  id,
ServiceQueryOptions  options
 

Get surveys answered by an account.

Parameters:
id account id
Returns:
transit surveys

TransitAccountWebsite GetAccountWebsiteById string  ticket,
int  id
 

Get an account website.

Returns:
transit account website

List<TransitAccountWebsite> GetAccountWebsites string  ticket,
int  id,
ServiceQueryOptions  options
 

Get all account websites.

Returns:
list of transit websites

int GetAccountWebsitesCount string  ticket,
int  id
 

Get all account websites count.

Returns:
number of account websites

TransitAccount GetAdminAccount string  ticket  ) 
 

Get an administrative account.

Returns:
transit account

List<TransitAccountPropertyValue> GetAllAccountPropertyValues string  ticket,
int  accountid,
int  groupid
 

Get all account property values, including unfilled ones.

Returns:
list of account property values

List<TransitAccountRedirect> GetAllAccountRedirects string  ticket,
ServiceQueryOptions  options
 

Get all account redirects.

Returns:
transit account redirects

TransitOpenIdRedirect GetOpenIdRedirect string  openidurl,
string  returnurl
 

Get an OpenId redirect.

Parameters:
openidurl openid url
returnurl return url
Returns:
authentication ticket for the current session

string Impersonate string  ticket,
int  id
 

Impersonate an account (a user).

Parameters:
id user id
ticket authentication ticket
Returns:
authentication ticket for the impersonated user

bool IsPasswordValid string  ticket,
int  accountid,
string  password
 

Check password.

Parameters:
ticket athentication ticket
password current password
accountid account id

bool IsPasswordValidMd5 string  ticket,
int  accountid,
string  password
 

Check password with an Md5 hash.

Parameters:
ticket athentication ticket
password current password hash
accountid account id

string Login string  email,
string  password
 

Login.

Parameters:
email verified e-mail address
password valid password
Returns:
authentication ticket for the current session

string LoginMd5 string  emailaddress,
string  passwordhash
 

Login to an account using a verified e-mail address and a password hash. Using the password hash avoids transferring the actual password accross an unsecure network.

Parameters:
emailaddress verified e-mail address
passwordhash valid password MD5 hash
Returns:
authentication ticket for the current session

string LoginOpenId string  token,
string[]  names,
string[]  values
 

Login to an account with an OpenId.

Parameters:
openidurl openid url
returnurl return url
Returns:
authentication ticket for the current session

void MoveAccountMessageToFolder string  ticket,
int  id,
int  messageid,
string  folder
 

Move a message.

Parameters:
ticket authentication ticket
messageid message id
folder target folder name

void MoveAccountMessageToFolderById string  ticket,
int  messageid,
int  folderid
 

Move a message.

Parameters:
ticket authentication ticket
messageid message id
folderid target folder

void PromoteAdministrator string  ticket,
int  id
 

Promote a user to an administrator.

Parameters:
ticket authentication ticket
id user id
Returns:

List<TransitAccountActivity> SearchAccounts string  ticket,
string  s,
ServiceQueryOptions  options
 

Search accounts.

Returns:

int SearchAccountsCount string  ticket,
string  s
 

Return the number of accounts matching a query.

Returns:
number of accounts

string VerifyAccountEmail string  password,
int  id,
string  code
 

Verify an e-mail.

Parameters:
password account password
id e-mail confirmation request id
code e-mail confirmation request code
Returns:
verified e-mail address

void VerifyBetaPassword string  betapassword  ) 
 

Verify beta password.

Parameters:
password password

string VerifyOpenId string  token,
string[]  names,
string[]  values
 

Verify an OpenId.

Parameters:
token 
c 
Returns:

The documentation for this class was generated from the following file:
  • WebAccountService.cs
© FoodCandy, 2006-2007, All Rights Reserved | FoodCandy | Sun Oct 7 10:48:53 2007 | Doxygen 1.4.6-NO