C# Class ODAF.Website.Controllers.HomeController

Inheritance: Controller
显示文件 Open project: openlab/ODAF-OpenTurf

Public Methods

Method Description
AddCommentToSummary ( string Text, string CreatedBy, string SummaryId ) : System.Web.Mvc.ActionResult
AddRateToSummary ( string guid, string rate ) : string
AddTagToSummary ( string guid, string name ) : string
Callback ( string provider ) : System.Web.Mvc.ActionResult

Callback method for the Twitter Authentication

CreateLandmark ( string name, string description, string layerid, string latitude, string longitude, string createdby ) : System.Web.Mvc.ActionResult
DeleteSummary ( string guid, string userId ) : string
Feeds ( int Region_Index ) : System.Web.Mvc.ActionResult

Get the list of Feed for a Region

GetFeedUniqueId ( int Region_Index, int Feed_Index ) : string
GetPointsFeedUrl ( int Region_Index, int Feed_Index ) : string

Get the url to call to get the list of Point of a Feed

GetSharedLandmarks ( bool showlandmarks, bool showuserlandmarks, string userid ) : System.Web.Mvc.ActionResult
GetSummaryByGuid ( string guid, string name, string latitude, string longitude, string createdby, int Region_Index, int Feed_Index ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult

Default View + Load Region List

Regions ( ) : System.Web.Mvc.ActionResult

Get the list of available Regions

SignOut ( ) : System.Web.Mvc.ActionResult

Forget the connected twitter user

Twitter ( ) : System.Web.Mvc.ActionResult

Call the Twitter Authentication

Private Methods

Method Description
CheckTwitterConnectedUser ( ) : void

User authentication check for Twitter

GetTwitterProfileImage ( string accessToken, string accessTokenSecret ) : string

Retreive the url of the Connected Twitter Users's profile picture

Method Details

AddCommentToSummary() public method

public AddCommentToSummary ( string Text, string CreatedBy, string SummaryId ) : System.Web.Mvc.ActionResult
Text string
CreatedBy string
SummaryId string
return System.Web.Mvc.ActionResult

AddRateToSummary() public method

public AddRateToSummary ( string guid, string rate ) : string
guid string
rate string
return string

AddTagToSummary() public method

public AddTagToSummary ( string guid, string name ) : string
guid string
name string
return string

Callback() public method

Callback method for the Twitter Authentication
public Callback ( string provider ) : System.Web.Mvc.ActionResult
provider string Name of the authentication provider
return System.Web.Mvc.ActionResult

CreateLandmark() public method

public CreateLandmark ( string name, string description, string layerid, string latitude, string longitude, string createdby ) : System.Web.Mvc.ActionResult
name string
description string
layerid string
latitude string
longitude string
createdby string
return System.Web.Mvc.ActionResult

DeleteSummary() public method

public DeleteSummary ( string guid, string userId ) : string
guid string
userId string
return string

Feeds() public method

Get the list of Feed for a Region
public Feeds ( int Region_Index ) : System.Web.Mvc.ActionResult
Region_Index int Index of the Region
return System.Web.Mvc.ActionResult

GetFeedUniqueId() public method

public GetFeedUniqueId ( int Region_Index, int Feed_Index ) : string
Region_Index int
Feed_Index int
return string

GetPointsFeedUrl() public method

Get the url to call to get the list of Point of a Feed
public GetPointsFeedUrl ( int Region_Index, int Feed_Index ) : string
Region_Index int Index of the Region
Feed_Index int Index of the Feed
return string

GetSharedLandmarks() public method

public GetSharedLandmarks ( bool showlandmarks, bool showuserlandmarks, string userid ) : System.Web.Mvc.ActionResult
showlandmarks bool
showuserlandmarks bool
userid string
return System.Web.Mvc.ActionResult

GetSummaryByGuid() public method

public GetSummaryByGuid ( string guid, string name, string latitude, string longitude, string createdby, int Region_Index, int Feed_Index ) : System.Web.Mvc.ActionResult
guid string
name string
latitude string
longitude string
createdby string
Region_Index int
Feed_Index int
return System.Web.Mvc.ActionResult

Index() public method

Default View + Load Region List
public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Regions() public method

Get the list of available Regions
public Regions ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

SignOut() public method

Forget the connected twitter user
public SignOut ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Twitter() public method

Call the Twitter Authentication
public Twitter ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult