Show / Hide Table of Contents

Interface IMegaApiClient

Namespace: CG.Web.MegaApiClient
Assembly: MegaApiClient.dll
Syntax
public interface IMegaApiClient

Properties

| Improve this Doc View Source

IsLoggedIn

Declaration
bool IsLoggedIn { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

CreateFolder(String, INode)

Declaration
INode CreateFolder(string name, INode parent)
Parameters
Type Name Description
System.String name
INode parent
Returns
Type Description
INode
| Improve this Doc View Source

CreateFolderAsync(String, INode)

Declaration
Task<INode> CreateFolderAsync(string name, INode parent)
Parameters
Type Name Description
System.String name
INode parent
Returns
Type Description
System.Threading.Tasks.Task<INode>
| Improve this Doc View Source

Delete(INode, Boolean)

Declaration
void Delete(INode node, bool moveToTrash = true)
Parameters
Type Name Description
INode node
System.Boolean moveToTrash
| Improve this Doc View Source

DeleteAsync(INode, Boolean)

Declaration
Task DeleteAsync(INode node, bool moveToTrash = true)
Parameters
Type Name Description
INode node
System.Boolean moveToTrash
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

Download(INode, Nullable<CancellationToken>)

Declaration
Stream Download(INode node, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
INode node
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
System.IO.Stream
| Improve this Doc View Source

Download(Uri, Nullable<CancellationToken>)

Declaration
Stream Download(Uri uri, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
System.Uri uri
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
System.IO.Stream
| Improve this Doc View Source

DownloadAsync(INode, IProgress<Double>, Nullable<CancellationToken>)

Declaration
Task<Stream> DownloadAsync(INode node, IProgress<double> progress = null, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
INode node
System.IProgress<System.Double> progress
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<System.IO.Stream>
| Improve this Doc View Source

DownloadAsync(Uri, IProgress<Double>, Nullable<CancellationToken>)

Declaration
Task<Stream> DownloadAsync(Uri uri, IProgress<double> progress = null, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
System.Uri uri
System.IProgress<System.Double> progress
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<System.IO.Stream>
| Improve this Doc View Source

DownloadFile(INode, String, Nullable<CancellationToken>)

Declaration
void DownloadFile(INode node, string outputFile, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
INode node
System.String outputFile
System.Nullable<System.Threading.CancellationToken> cancellationToken
| Improve this Doc View Source

DownloadFile(Uri, String, Nullable<CancellationToken>)

Declaration
void DownloadFile(Uri uri, string outputFile, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
System.Uri uri
System.String outputFile
System.Nullable<System.Threading.CancellationToken> cancellationToken
| Improve this Doc View Source

DownloadFileAsync(INode, String, IProgress<Double>, Nullable<CancellationToken>)

Declaration
Task DownloadFileAsync(INode node, string outputFile, IProgress<double> progress = null, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
INode node
System.String outputFile
System.IProgress<System.Double> progress
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

DownloadFileAsync(Uri, String, IProgress<Double>, Nullable<CancellationToken>)

Declaration
Task DownloadFileAsync(Uri uri, string outputFile, IProgress<double> progress = null, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
System.Uri uri
System.String outputFile
System.IProgress<System.Double> progress
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

DownloadFileAttribute(INode, FileAttributeType, Nullable<CancellationToken>)

Declaration
Stream DownloadFileAttribute(INode node, FileAttributeType fileAttributeType, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
INode node
FileAttributeType fileAttributeType
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
System.IO.Stream
| Improve this Doc View Source

DownloadFileAttributeAsync(INode, FileAttributeType, Nullable<CancellationToken>)

Declaration
Task<Stream> DownloadFileAttributeAsync(INode node, FileAttributeType fileAttributeType, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
INode node
FileAttributeType fileAttributeType
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<System.IO.Stream>
| Improve this Doc View Source

GenerateAuthInfos(String, String, String)

Declaration
MegaApiClient.AuthInfos GenerateAuthInfos(string email, string password, string mfaKey = null)
Parameters
Type Name Description
System.String email
System.String password
System.String mfaKey
Returns
Type Description
MegaApiClient.AuthInfos
| Improve this Doc View Source

GenerateAuthInfosAsync(String, String)

Declaration
Task<MegaApiClient.AuthInfos> GenerateAuthInfosAsync(string email, string password)
Parameters
Type Name Description
System.String email
System.String password
Returns
Type Description
System.Threading.Tasks.Task<MegaApiClient.AuthInfos>
| Improve this Doc View Source

GenerateAuthInfosAsync(String, String, String)

Declaration
Task<MegaApiClient.AuthInfos> GenerateAuthInfosAsync(string email, string password, string mfaKey)
Parameters
Type Name Description
System.String email
System.String password
System.String mfaKey
Returns
Type Description
System.Threading.Tasks.Task<MegaApiClient.AuthInfos>
| Improve this Doc View Source

GetAccountInformation()

Declaration
IAccountInformation GetAccountInformation()
Returns
Type Description
IAccountInformation
| Improve this Doc View Source

GetAccountInformationAsync()

Declaration
Task<IAccountInformation> GetAccountInformationAsync()
Returns
Type Description
System.Threading.Tasks.Task<IAccountInformation>
| Improve this Doc View Source

GetDownloadLink(INode)

Declaration
Uri GetDownloadLink(INode node)
Parameters
Type Name Description
INode node
Returns
Type Description
System.Uri
| Improve this Doc View Source

GetDownloadLinkAsync(INode)

Declaration
Task<Uri> GetDownloadLinkAsync(INode node)
Parameters
Type Name Description
INode node
Returns
Type Description
System.Threading.Tasks.Task<System.Uri>
| Improve this Doc View Source

GetNodeFromLink(Uri)

Declaration
INode GetNodeFromLink(Uri uri)
Parameters
Type Name Description
System.Uri uri
Returns
Type Description
INode
| Improve this Doc View Source

GetNodeFromLinkAsync(Uri)

Declaration
Task<INode> GetNodeFromLinkAsync(Uri uri)
Parameters
Type Name Description
System.Uri uri
Returns
Type Description
System.Threading.Tasks.Task<INode>
| Improve this Doc View Source

GetNodes()

Declaration
IEnumerable<INode> GetNodes()
Returns
Type Description
System.Collections.Generic.IEnumerable<INode>
| Improve this Doc View Source

GetNodes(INode)

Declaration
IEnumerable<INode> GetNodes(INode parent)
Parameters
Type Name Description
INode parent
Returns
Type Description
System.Collections.Generic.IEnumerable<INode>
| Improve this Doc View Source

GetNodesAsync()

Declaration
Task<IEnumerable<INode>> GetNodesAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<INode>>
| Improve this Doc View Source

GetNodesAsync(INode)

Declaration
Task<IEnumerable<INode>> GetNodesAsync(INode parent)
Parameters
Type Name Description
INode parent
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<INode>>
| Improve this Doc View Source

GetNodesFromLink(Uri)

Declaration
IEnumerable<INode> GetNodesFromLink(Uri uri)
Parameters
Type Name Description
System.Uri uri
Returns
Type Description
System.Collections.Generic.IEnumerable<INode>
| Improve this Doc View Source

GetNodesFromLinkAsync(Uri)

Declaration
Task<IEnumerable<INode>> GetNodesFromLinkAsync(Uri uri)
Parameters
Type Name Description
System.Uri uri
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<INode>>
| Improve this Doc View Source

GetRecoveryKey()

Declaration
string GetRecoveryKey()
Returns
Type Description
System.String
| Improve this Doc View Source

GetRecoveryKeyAsync()

Declaration
Task<string> GetRecoveryKeyAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.String>
| Improve this Doc View Source

GetSessionsHistory()

Declaration
IEnumerable<ISession> GetSessionsHistory()
Returns
Type Description
System.Collections.Generic.IEnumerable<ISession>
| Improve this Doc View Source

GetSessionsHistoryAsync()

Declaration
Task<IEnumerable<ISession>> GetSessionsHistoryAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ISession>>
| Improve this Doc View Source

Login()

Declaration
void Login()
| Improve this Doc View Source

Login(MegaApiClient.AuthInfos)

Declaration
MegaApiClient.LogonSessionToken Login(MegaApiClient.AuthInfos authInfos)
Parameters
Type Name Description
MegaApiClient.AuthInfos authInfos
Returns
Type Description
MegaApiClient.LogonSessionToken
| Improve this Doc View Source

Login(MegaApiClient.LogonSessionToken)

Declaration
void Login(MegaApiClient.LogonSessionToken logonSessionToken)
Parameters
Type Name Description
MegaApiClient.LogonSessionToken logonSessionToken
| Improve this Doc View Source

Login(String, String)

Declaration
MegaApiClient.LogonSessionToken Login(string email, string password)
Parameters
Type Name Description
System.String email
System.String password
Returns
Type Description
MegaApiClient.LogonSessionToken
| Improve this Doc View Source

Login(String, String, String)

Declaration
MegaApiClient.LogonSessionToken Login(string email, string password, string mfaKey)
Parameters
Type Name Description
System.String email
System.String password
System.String mfaKey
Returns
Type Description
MegaApiClient.LogonSessionToken
| Improve this Doc View Source

LoginAnonymous()

Declaration
void LoginAnonymous()
| Improve this Doc View Source

LoginAnonymousAsync()

Declaration
Task LoginAnonymousAsync()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

LoginAsync()

Declaration
Task LoginAsync()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

LoginAsync(MegaApiClient.AuthInfos)

Declaration
Task<MegaApiClient.LogonSessionToken> LoginAsync(MegaApiClient.AuthInfos authInfos)
Parameters
Type Name Description
MegaApiClient.AuthInfos authInfos
Returns
Type Description
System.Threading.Tasks.Task<MegaApiClient.LogonSessionToken>
| Improve this Doc View Source

LoginAsync(MegaApiClient.LogonSessionToken)

Declaration
Task LoginAsync(MegaApiClient.LogonSessionToken logonSessionToken)
Parameters
Type Name Description
MegaApiClient.LogonSessionToken logonSessionToken
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

LoginAsync(String, String, String)

Declaration
Task<MegaApiClient.LogonSessionToken> LoginAsync(string email, string password, string mfaKey = null)
Parameters
Type Name Description
System.String email
System.String password
System.String mfaKey
Returns
Type Description
System.Threading.Tasks.Task<MegaApiClient.LogonSessionToken>
| Improve this Doc View Source

Logout()

Declaration
void Logout()
| Improve this Doc View Source

LogoutAsync()

Declaration
Task LogoutAsync()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

Move(INode, INode)

Declaration
INode Move(INode node, INode destinationParentNode)
Parameters
Type Name Description
INode node
INode destinationParentNode
Returns
Type Description
INode
| Improve this Doc View Source

MoveAsync(INode, INode)

Declaration
Task<INode> MoveAsync(INode sourceNode, INode destinationParentNode)
Parameters
Type Name Description
INode sourceNode
INode destinationParentNode
Returns
Type Description
System.Threading.Tasks.Task<INode>
| Improve this Doc View Source

Rename(INode, String)

Declaration
INode Rename(INode node, string newName)
Parameters
Type Name Description
INode node
System.String newName
Returns
Type Description
INode
| Improve this Doc View Source

RenameAsync(INode, String)

Declaration
Task<INode> RenameAsync(INode sourceNode, string newName)
Parameters
Type Name Description
INode sourceNode
System.String newName
Returns
Type Description
System.Threading.Tasks.Task<INode>
| Improve this Doc View Source

Upload(Stream, String, INode, Nullable<DateTime>, Nullable<CancellationToken>)

Declaration
INode Upload(Stream stream, string name, INode parent, DateTime? modificationDate = null, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
System.IO.Stream stream
System.String name
INode parent
System.Nullable<System.DateTime> modificationDate
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
INode
| Improve this Doc View Source

UploadAsync(Stream, String, INode, IProgress<Double>, Nullable<DateTime>, Nullable<CancellationToken>)

Declaration
Task<INode> UploadAsync(Stream stream, string name, INode parent, IProgress<double> progress = null, DateTime? modificationDate = null, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
System.IO.Stream stream
System.String name
INode parent
System.IProgress<System.Double> progress
System.Nullable<System.DateTime> modificationDate
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<INode>
| Improve this Doc View Source

UploadFile(String, INode, Nullable<CancellationToken>)

Declaration
INode UploadFile(string filename, INode parent, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
System.String filename
INode parent
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
INode
| Improve this Doc View Source

UploadFileAsync(String, INode, IProgress<Double>, Nullable<CancellationToken>)

Declaration
Task<INode> UploadFileAsync(string filename, INode parent, IProgress<double> progress = null, CancellationToken? cancellationToken = null)
Parameters
Type Name Description
System.String filename
INode parent
System.IProgress<System.Double> progress
System.Nullable<System.Threading.CancellationToken> cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<INode>

Events

| Improve this Doc View Source

ApiRequestFailed

Declaration
event EventHandler<ApiRequestFailedEventArgs> ApiRequestFailed
Event Type
Type Description
System.EventHandler<ApiRequestFailedEventArgs>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2013-2024 - Gregoire Pailler - MegaApiClient 1.10.5