C# 클래스 Foretagsplatsen.Api.Resources.DocumentResource

Document archive REST resource: https://web.foretagsplatsen.se/Api/Company/{businessIdentityCode}/Document/{path} Notes: * A path that ends with a forward slash '/' denotes a folder, otherwise it is a file
파일 보기 프로젝트 열기: foretagsplatsen/Foretagsplatsen-DotNet-API

공개 메소드들

메소드 설명
Create ( string path, byte file ) : void

Creates a file to the document archive. Be aware of the path convention that says a file path cannot end with a slash. If the file already exists an ApiException with ApiErrorType Exists will be thrown.

CreatePath ( string path ) : void

Create a folder path. It is possible to supply a path with subfolders that will be created simultaneous. Be aware of the path convention that says if a paths ends with a slash it denotes a folder. Hence the path must end with a slash. If the path already exists an ApiException with ApiErrorType Exists will be thrown.

Delete ( string path ) : void

Delete a file or folder. If the path is a folder all folder content will be deleted too.

DocumentResource ( ApiClient client, CompanyInfo company ) : System

Instantiates a new DocumentResource object.

DocumentResource ( ApiClient client, string businessIdentityCode ) : System

Instantiates a new DocumentResource object.

DownloadFile ( string path ) : byte[]

Download a file from the document archive. Be aware of the path convention that says a file path cannot end with a slash.

Get ( string path ) : Document

Get the file or folder info for the path.

GetUrl ( string path ) : string

Url for the document archive resource.

Update ( string path, byte file ) : void

Save a file to the document archive. Be aware of the path convention that says a file path cannot end with a slash. If the file already exists it will be replaced by the new one.

UpdatePath ( string path ) : void

Update a folder path. It is possible to supply a path with subfolders that will be created simultaneous. Be aware of the path convention that says if a paths ends with a slash it denotes a folder. Hence the path must end with a slash.

메소드 상세

Create() 공개 메소드

Creates a file to the document archive. Be aware of the path convention that says a file path cannot end with a slash. If the file already exists an ApiException with ApiErrorType Exists will be thrown.
public Create ( string path, byte file ) : void
path string The path to the file to create
file byte The binary data to upload
리턴 void

CreatePath() 공개 메소드

Create a folder path. It is possible to supply a path with subfolders that will be created simultaneous. Be aware of the path convention that says if a paths ends with a slash it denotes a folder. Hence the path must end with a slash. If the path already exists an ApiException with ApiErrorType Exists will be thrown.
public CreatePath ( string path ) : void
path string The path to create.
리턴 void

Delete() 공개 메소드

Delete a file or folder. If the path is a folder all folder content will be deleted too.
public Delete ( string path ) : void
path string The path to the file or folder
리턴 void

DocumentResource() 공개 메소드

Instantiates a new DocumentResource object.
public DocumentResource ( ApiClient client, CompanyInfo company ) : System
client ApiClient REST client
company Foretagsplatsen.Api.Entities.CompanyInfo Company
리턴 System

DocumentResource() 공개 메소드

Instantiates a new DocumentResource object.
public DocumentResource ( ApiClient client, string businessIdentityCode ) : System
client ApiClient REST client
businessIdentityCode string Business identity code for company.
리턴 System

DownloadFile() 공개 메소드

Download a file from the document archive. Be aware of the path convention that says a file path cannot end with a slash.
public DownloadFile ( string path ) : byte[]
path string The path to the file.
리턴 byte[]

Get() 공개 메소드

Get the file or folder info for the path.
public Get ( string path ) : Document
path string The path to the file or folder
리턴 Foretagsplatsen.Api.Entities.Document

GetUrl() 공개 메소드

Url for the document archive resource.
public GetUrl ( string path ) : string
path string
리턴 string

Update() 공개 메소드

Save a file to the document archive. Be aware of the path convention that says a file path cannot end with a slash. If the file already exists it will be replaced by the new one.
public Update ( string path, byte file ) : void
path string The path to the file to create
file byte The binary data to upload
리턴 void

UpdatePath() 공개 메소드

Update a folder path. It is possible to supply a path with subfolders that will be created simultaneous. Be aware of the path convention that says if a paths ends with a slash it denotes a folder. Hence the path must end with a slash.
public UpdatePath ( string path ) : void
path string The path to create.
리턴 void