C# Class Facebook.Graph.User

Inheritance: GraphEntity, ISubscribableEntity, ISearchableEntity
Afficher le fichier Open project: prabirshrestha/opengraph.net

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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.
Résultat Album

CreateAlbumAsync() public méthode

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.
Résultat void

CreateEvent() public méthode

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.
Résultat GraphEvent

CreateEvent() public méthode

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.
Résultat GraphEvent

CreateEventAsync() public méthode

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.
Résultat void

CreateEventAsync() public méthode

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.
Résultat void

CreateNote() public méthode

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.
Résultat Note

CreateNoteAsync() public méthode

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.
Résultat void

User() public méthode

Creates a new, empty User.
public User ( ) : System
Résultat System

User() public méthode

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.
Résultat System

WriteFeed() public méthode

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 .
Résultat Post

WriteFeedAsync() public méthode

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 .
Résultat Post

WriteLink() public méthode

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.
Résultat Link

WriteLinkAsync() public méthode

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.
Résultat void