C# Класс Facebook.Graph.User

Наследование: GraphEntity, ISubscribableEntity, ISearchableEntity
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Описание методов

CreateAlbum() публичный Метод

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.
Результат Album

CreateAlbumAsync() публичный Метод

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.
Результат void

CreateEvent() публичный Метод

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.
Результат GraphEvent

CreateEvent() публичный Метод

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.
Результат GraphEvent

CreateEventAsync() публичный Метод

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.
Результат void

CreateEventAsync() публичный Метод

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.
Результат void

CreateNote() публичный Метод

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.
Результат Note

CreateNoteAsync() публичный Метод

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.
Результат void

User() публичный Метод

Creates a new, empty User.
public User ( ) : System
Результат System

User() публичный Метод

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.
Результат System

WriteFeed() публичный Метод

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 .
Результат Post

WriteFeedAsync() публичный Метод

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 .
Результат Post

WriteLink() публичный Метод

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.
Результат Link

WriteLinkAsync() публичный Метод

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.
Результат void