C# Class Facebook.Graph.User

Inheritance: GraphEntity, ISubscribableEntity, ISearchableEntity
Mostrar archivo Open project: prabirshrestha/opengraph.net

Private Properties

Property Type Description

Public Methods

Method Description
CreateAlbum ( string title, string message ) : Album

Creates a new photo album on behalf of the user.

CreateAlbumAsync ( string title, string message, Action callback ) : void

Creates a new photo album on behalf of the user.

CreateEvent ( string name, System.DateTime starts, System.DateTime ends ) : GraphEvent

Creates a new event on behalf of this user.

CreateEvent ( string name, string description, string privacy, System.DateTime starts, System.DateTime ends ) : GraphEvent

Creates a new event on behalf of this user.

CreateEventAsync ( string name, System.DateTime starts, System.DateTime ends, Action callback ) : void

Asynchronously creates a new event on behalf of this user.

CreateEventAsync ( string name, string description, string privacy, System.DateTime starts, System.DateTime ends, Action callback ) : void

Asynchronously creates a new event on behalf of this user.

CreateNote ( string subject, string message ) : Note

Creates a Note on behalf of the user.

CreateNoteAsync ( string subject, string message, Action callback ) : void

Asynchronously creates a Note on behalf of the user.

User ( ) : System

Creates a new, empty User.

User ( JToken obj, GraphSession session ) : System

Creates a new User from the specified JSON object and GraphSession.

WriteFeed ( string message, string pictureUrl = null, string linkUrl = null, string linkName = null, string linkDescription = null ) : Post

Writes a new Post to the user's feed.

WriteFeedAsync ( Action callback, string message, string pictureUrl = null, string linkUrl = null, string linkName = null, string linkDescription = null ) : Post

Writes a new Post to the user's feed.

WriteLink ( string linkUrl, string message ) : Link

Writes a link to the user's profile.

WriteLinkAsync ( string linkUrl, string message, Action callback ) : void

Asynchronously writes a link to the user's profile.

Method Details

CreateAlbum() public method

Creates a new photo album on behalf of the user.
Thrown if the server fails to perform the request. Thrown if is or empty.
public CreateAlbum ( string title, string message ) : Album
title string The title of the album.
message string An initial remark about the album.
return Album

CreateAlbumAsync() public method

Creates a new photo album on behalf of the user.
Thrown immediately every time because this API is not yet implemented. Thrown if the server fails to perform the request. Thrown if is or empty.
public CreateAlbumAsync ( string title, string message, Action callback ) : void
title string The title of the album.
message string An initial remark about the album.
callback Action A reference to the method to call upon successful completion of this request.
return void

CreateEvent() public method

Creates a new event on behalf of this user.
Thrown if the server fails to perform the request. Thrown if is or empty.
public CreateEvent ( string name, System.DateTime starts, System.DateTime ends ) : GraphEvent
name string The name of the event to create.
starts System.DateTime The time that the event starts.
ends System.DateTime The time that the event ends.
return GraphEvent

CreateEvent() public method

Creates a new event on behalf of this user.
Thrown if the server fails to perform the request. Thrown if is or empty.
public CreateEvent ( string name, string description, string privacy, System.DateTime starts, System.DateTime ends ) : GraphEvent
name string The name of the event to create.
description string The event's description.
privacy string The event's privacy setting. Valid values are "OPEN", "CLOSED", and "SECRET".
starts System.DateTime The time that the event starts.
ends System.DateTime The time that the event ends.
return GraphEvent

CreateEventAsync() public method

Asynchronously creates a new event on behalf of this user.
Thrown if the server fails to perform the request. Thrown if is or empty. Thrown immediately every time because this API is not yet implemented.
public CreateEventAsync ( string name, System.DateTime starts, System.DateTime ends, Action callback ) : void
name string The name of the event to create.
starts System.DateTime The time that the event starts.
ends System.DateTime The time that the event ends.
callback Action A reference to the method to call upon completion of the request.
return void

CreateEventAsync() public method

Asynchronously creates a new event on behalf of this user.
Thrown immediately every time because this API is not yet implemented. Thrown if the server fails to perform the request. Thrown if is or empty.
public CreateEventAsync ( string name, string description, string privacy, System.DateTime starts, System.DateTime ends, Action callback ) : void
name string The name of the event to create.
description string The event's description.
privacy string The event's privacy setting. Valid values are "OPEN", "CLOSED", and "SECRET".
starts System.DateTime The time that the event starts.
ends System.DateTime The time that the event ends.
callback Action A reference to the method to call upon completion of this request.
return void

CreateNote() public method

Creates a Note on behalf of the user.
Thrown if the server fails to perform the request. Thrown if or is or empty.
public CreateNote ( string subject, string message ) : Note
subject string The title of the Note.
message string The Note's contents.
return Note

CreateNoteAsync() public method

Asynchronously creates a Note on behalf of the user.
Thrown immediately every time because this API is not yet implemented. Thrown if the server fails to perform the request. Thrown if or is or empty.
public CreateNoteAsync ( string subject, string message, Action callback ) : void
subject string The title of the Note.
message string The Note's contents.
callback Action A reference to the method to call upon completion of this request.
return void

User() public method

Creates a new, empty User.
public User ( ) : System
return System

User() public method

Creates a new User from the specified JSON object and GraphSession.
public User ( JToken obj, GraphSession session ) : System
obj JToken The source JSON object.
session GraphSession The session that is creating the object.
return System

WriteFeed() public method

Writes a new Post to the user's feed.
Thrown if the server fails to perform the request. Thrown if is or empty.
public WriteFeed ( string message, string pictureUrl = null, string linkUrl = null, string linkName = null, string linkDescription = null ) : Post
message string The post message.
pictureUrl string A URL of an optional picture associated with the post. The default value of this parameter is .
linkUrl string A URL of an optional link to be associated with this post. The default value of this parameter is .
linkName string The name of the optional link to be associated with this post. The default value of this parameter is .
linkDescription string The description of the optional link associated with this post. The default value of this parameter is .
return Post

WriteFeedAsync() public method

Writes a new Post to the user's feed.
Thrown immediately every time because this API is not yet implemented. Thrown if the server fails to perform the request. Thrown if is or empty.
public WriteFeedAsync ( Action callback, string message, string pictureUrl = null, string linkUrl = null, string linkName = null, string linkDescription = null ) : Post
callback Action A reference to the method to call upon successful completion of the request. This parameter should accept a single /// parameter.
message string The post message.
pictureUrl string A URL of an optional picture associated with the post. The default value of this parameter is .
linkUrl string A URL of an optional link to be associated with this post. The default value of this parameter is .
linkName string The name of the optional link to be associated with this post. The default value of this parameter is .
linkDescription string The description of the optional link associated with this post. The default value of this parameter is .
return Post

WriteLink() public method

Writes a link to the user's profile.
Thrown if or is or empty. Thrown if the server fails to perform the request.
public WriteLink ( string linkUrl, string message ) : Link
linkUrl string The URL of the link
message string A descriptive message with the link.
return Link

WriteLinkAsync() public method

Asynchronously writes a link to the user's profile.
Thrown if or is or empty. Thrown if the server fails to perform the request. Thrown immediately every time because this API is not yet implemented.
public WriteLinkAsync ( string linkUrl, string message, Action callback ) : void
linkUrl string The URL of the link
message string A descriptive message with the link.
callback Action A reference to the method to call upon successful completion of the request.
return void