C# Класс SnapDotNet.Core.Snapchat.Api.Endpoints

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Authenticate ( string username, string password ) : Account

AuthenticateAsync ( string username, string password ) : Task

ChangeFriendDisplayName ( string friendUsername, string newDisplayName ) : Response

ChangeFriendDisplayNameAsync ( string friendUsername, string newDisplayName ) : Task

ClearFeed ( ) : bool
ClearFeedAsync ( ) : Task

Endpoints ( SnapChatManager snapchatManager ) : System

FindFriends ( string countryCode, string>.ObservableCollection numberAndDisplayNameCollection ) : FoundFriend

FindFriendsAsync ( string countryCode, string>.ObservableCollection numberAndDisplayNameCollection ) : Task

GetCaptchaImages ( string email, string authToken ) : Captcha

GetCaptchaImagesAsync ( string email, string authToken ) : Task

GetPublicActivity ( string requestedUsernames = null ) : PublicActivity>.ObservableDictionary
GetPublicActivityAsync ( string requestedUsernames = null ) : PublicActivity>>.Task

GetSnapBlobAsync ( string snapId ) : Task

GetStories ( ) : Stories

GetStoriesAsync ( ) : Task

GetStoryBlob ( Uri blobPath, string key, string iv, bool zipped ) : byte[]

GetStoryMediaBlob ( Story storyInstance ) : byte[]

GetStoryThumbnailBlob ( Story storyInstance ) : byte[]

GetUpdates ( ) : Account

GetUpdatesAsync ( ) : Task

Logout ( ) : Response

LogoutAsync ( ) : Task

Register ( int age, string birthday, string email, string password ) : RegistrationResponse

RegisterAndGetCaptcha ( int age, string birthday, string email, string password ) : Captcha

RegisterAndGetCaptchaAsync ( int age, string birthday, string email, string password ) : Task

RegisterAsync ( int age, string birthday, string email, string password ) : Task

RegisterUsername ( string email, string authToken, string requestedUsername ) : Account

RegisterUsernameAsync ( string email, string authToken, string requestedUsername ) : Task

SendFriendAction ( string friendUsername, FriendAction action ) : Response

SendFriendActionAsync ( string friendUsername, FriendAction action ) : Task

SendSnapViewedEvent ( string snapId, int timeViewed, int captureTime ) : bool

SendSnapViewedEventAsync ( string snapId, int timeViewed, int captureTime ) : Task

SendStoryViewedEvent ( string storyId, int screenshotCount ) : bool

SendStoryViewedEventAsync ( string storyId, int screenshotCount ) : Task

SetBestFriendCount ( int numberOfBestFriends ) : BestFriends
SetBestFriendCountAsync ( int numberOfBestFriends ) : Task

SolveCaptcha ( string email, string captchaId, string authToken, bool captchaImagesWithGhosts ) : bool

SolveCaptchaAsync ( string email, string captchaId, string authToken, bool captchaImagesWithGhosts ) : Task

UpdateAccountPrivacy ( bool isPrivate ) : bool

UpdateAccountPrivacyAsync ( bool isPrivate ) : Task

UpdateBirthday ( int birthMonth, int birthDay ) : bool

UpdateBirthdayAsync ( int birthMonth, int birthDay ) : Task

UpdateEmail ( string email ) : bool

UpdateEmailAsync ( string email ) : Task

UpdateFeatureSettings ( bool smartFilters = false, bool visualFilters = false, bool specialText = false, bool replaySnaps = false, bool frontFacingFlash = false ) : bool

UpdateFeatureSettingsAsync ( bool smartFilters = false, bool visualFilters = false, bool specialText = false, bool replaySnaps = false, bool frontFacingFlash = false ) : Task

UpdateMaturitySettings ( bool canViewMatureContent ) : bool

UpdateMaturitySettingsAsync ( bool canViewMatureContent ) : Task

UpdateSetting ( string actionName, string>.Dictionary extraPostData = null ) : bool

UpdateStoryPrivacy ( bool friendsOnly, List friendsToBlock = null ) : bool

UpdateStoryPrivacyAsync ( bool friendsOnly, List friendsToBlock = null ) : Task

Приватные методы

Метод Описание
GetAuthedUsername ( ) : string

SendSnapEventsAsync ( object>.Dictionary events, double>.Dictionary snapInfo ) : Task

SendStoryEventsAsync ( string>.Dictionary storyInfo ) : Task

UpdateSettingAsync ( string actionName, string>.Dictionary extraPostData = null ) : Task

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

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

public Authenticate ( string username, string password ) : Account
username string
password string
Результат SnapDotNet.Core.Snapchat.Models.Account

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

public AuthenticateAsync ( string username, string password ) : Task
username string
password string
Результат Task

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

public ChangeFriendDisplayName ( string friendUsername, string newDisplayName ) : Response
friendUsername string
newDisplayName string
Результат Response

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

public ChangeFriendDisplayNameAsync ( string friendUsername, string newDisplayName ) : Task
friendUsername string
newDisplayName string
Результат Task

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

public ClearFeed ( ) : bool
Результат bool

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

public ClearFeedAsync ( ) : Task
Результат Task

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

public Endpoints ( SnapChatManager snapchatManager ) : System
snapchatManager SnapChatManager
Результат System

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

public FindFriends ( string countryCode, string>.ObservableCollection numberAndDisplayNameCollection ) : FoundFriend
countryCode string
numberAndDisplayNameCollection string>.ObservableCollection A collection of Tuples, where the first item is a phone full number /// (without country code), and the second is the Display Name that will be applied to the account with this number.
Результат SnapDotNet.Core.Snapchat.Models.FoundFriend

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

public FindFriendsAsync ( string countryCode, string>.ObservableCollection numberAndDisplayNameCollection ) : Task
countryCode string
numberAndDisplayNameCollection string>.ObservableCollection A collection of Tuples, where the first item is a phone full number /// (without country code), and the second is the Display Name that will be applied to the account with this number.
Результат Task

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

public GetCaptchaImages ( string email, string authToken ) : Captcha
email string
authToken string
Результат SnapDotNet.Core.Snapchat.Models.Captcha

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

public GetCaptchaImagesAsync ( string email, string authToken ) : Task
email string
authToken string
Результат Task

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

public GetPublicActivity ( string requestedUsernames = null ) : PublicActivity>.ObservableDictionary
requestedUsernames string
Результат PublicActivity>.ObservableDictionary

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

public GetPublicActivityAsync ( string requestedUsernames = null ) : PublicActivity>>.Task
requestedUsernames string
Результат PublicActivity>>.Task

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

public GetSnapBlobAsync ( string snapId ) : Task
snapId string
Результат Task

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

public GetStories ( ) : Stories
Результат Stories

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

public GetStoriesAsync ( ) : Task
Результат Task

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

public GetStoryBlob ( Uri blobPath, string key, string iv, bool zipped ) : byte[]
blobPath System.Uri
key string
iv string
zipped bool
Результат byte[]

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

public GetStoryMediaBlob ( Story storyInstance ) : byte[]
storyInstance Story
Результат byte[]

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

public GetStoryThumbnailBlob ( Story storyInstance ) : byte[]
storyInstance Story
Результат byte[]

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

public GetUpdates ( ) : Account
Результат SnapDotNet.Core.Snapchat.Models.Account

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

public GetUpdatesAsync ( ) : Task
Результат Task

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

public Logout ( ) : Response
Результат Response

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

public LogoutAsync ( ) : Task
Результат Task

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

public Register ( int age, string birthday, string email, string password ) : RegistrationResponse
age int
birthday string
email string
password string
Результат SnapDotNet.Core.Snapchat.Models.RegistrationResponse

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

public RegisterAndGetCaptcha ( int age, string birthday, string email, string password ) : Captcha
age int
birthday string
email string
password string
Результат SnapDotNet.Core.Snapchat.Models.Captcha

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

public RegisterAndGetCaptchaAsync ( int age, string birthday, string email, string password ) : Task
age int
birthday string
email string
password string
Результат Task

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

public RegisterAsync ( int age, string birthday, string email, string password ) : Task
age int
birthday string
email string
password string
Результат Task

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

public RegisterUsername ( string email, string authToken, string requestedUsername ) : Account
email string
authToken string
requestedUsername string
Результат SnapDotNet.Core.Snapchat.Models.Account

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

public RegisterUsernameAsync ( string email, string authToken, string requestedUsername ) : Task
email string
authToken string
requestedUsername string
Результат Task

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

public SendFriendAction ( string friendUsername, FriendAction action ) : Response
friendUsername string
action FriendAction
Результат Response

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

public SendFriendActionAsync ( string friendUsername, FriendAction action ) : Task
friendUsername string
action FriendAction
Результат Task

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

public SendSnapViewedEvent ( string snapId, int timeViewed, int captureTime ) : bool
snapId string
timeViewed int
captureTime int
Результат bool

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

public SendSnapViewedEventAsync ( string snapId, int timeViewed, int captureTime ) : Task
snapId string
timeViewed int
captureTime int
Результат Task

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

public SendStoryViewedEvent ( string storyId, int screenshotCount ) : bool
storyId string
screenshotCount int
Результат bool

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

public SendStoryViewedEventAsync ( string storyId, int screenshotCount ) : Task
storyId string
screenshotCount int
Результат Task

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

public SetBestFriendCount ( int numberOfBestFriends ) : BestFriends
numberOfBestFriends int
Результат SnapDotNet.Core.Snapchat.Models.BestFriends

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

public SetBestFriendCountAsync ( int numberOfBestFriends ) : Task
numberOfBestFriends int Must be 3, 5, or 7.
Результат Task

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

public SolveCaptcha ( string email, string captchaId, string authToken, bool captchaImagesWithGhosts ) : bool
email string
captchaId string
authToken string
captchaImagesWithGhosts bool
Результат bool

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

public SolveCaptchaAsync ( string email, string captchaId, string authToken, bool captchaImagesWithGhosts ) : Task
email string
captchaId string
authToken string
captchaImagesWithGhosts bool
Результат Task

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

public UpdateAccountPrivacy ( bool isPrivate ) : bool
isPrivate bool
Результат bool

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

public UpdateAccountPrivacyAsync ( bool isPrivate ) : Task
isPrivate bool
Результат Task

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

public UpdateBirthday ( int birthMonth, int birthDay ) : bool
birthMonth int
birthDay int
Результат bool

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

public UpdateBirthdayAsync ( int birthMonth, int birthDay ) : Task
birthMonth int
birthDay int
Результат Task

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

public UpdateEmail ( string email ) : bool
email string
Результат bool

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

public UpdateEmailAsync ( string email ) : Task
email string
Результат Task

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

public UpdateFeatureSettings ( bool smartFilters = false, bool visualFilters = false, bool specialText = false, bool replaySnaps = false, bool frontFacingFlash = false ) : bool
smartFilters bool
visualFilters bool
specialText bool
replaySnaps bool
frontFacingFlash bool
Результат bool

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

public UpdateFeatureSettingsAsync ( bool smartFilters = false, bool visualFilters = false, bool specialText = false, bool replaySnaps = false, bool frontFacingFlash = false ) : Task
smartFilters bool
visualFilters bool
specialText bool
replaySnaps bool
frontFacingFlash bool
Результат Task

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

public UpdateMaturitySettings ( bool canViewMatureContent ) : bool
canViewMatureContent bool
Результат bool

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

public UpdateMaturitySettingsAsync ( bool canViewMatureContent ) : Task
canViewMatureContent bool
Результат Task

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

public UpdateSetting ( string actionName, string>.Dictionary extraPostData = null ) : bool
actionName string
extraPostData string>.Dictionary
Результат bool

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

public UpdateStoryPrivacy ( bool friendsOnly, List friendsToBlock = null ) : bool
friendsOnly bool
friendsToBlock List
Результат bool

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

public UpdateStoryPrivacyAsync ( bool friendsOnly, List friendsToBlock = null ) : Task
friendsOnly bool
friendsToBlock List
Результат Task