C# Класс booruReader.Model.BasePost

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

Открытые свойства

Свойство Тип Описание
FileMD string
ImageRating PostRating
PostId string
_height int
_width int

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

Метод Описание
BasePost ( ) : System
BasePost ( BasePost post, bool isUIImage = false ) : System

Constructor that SHOULD be used for images

SaveImage ( ) : void

This call will try to save the image and report its completion

SaveImage ( string imageLocation ) : void

This save method is invoked from preview screen. We already have full-size image downloaded so just copy it.

_downloadClient_DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void

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

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

Returns human readable filename in format of: booru postid tag1 tag2... .extension Function will try adding as many tags as possible until we hit the 256 char limit for filename + folder path. Refer to http://msdn.microsoft.com/en-us/library/ee681827(VS.85).aspx#limits for the filename size limit.

LateFilePath ( object e, AsyncCompletedEventArgs args ) : void
client_DownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void

Progress callback for updating the image download progressbar

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

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

public BasePost ( ) : System
Результат System

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

Constructor that SHOULD be used for images
public BasePost ( BasePost post, bool isUIImage = false ) : System
post BasePost
isUIImage bool
Результат System

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

This call will try to save the image and report its completion
public SaveImage ( ) : void
Результат void

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

This save method is invoked from preview screen. We already have full-size image downloaded so just copy it.
public SaveImage ( string imageLocation ) : void
imageLocation string
Результат void

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

public _downloadClient_DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void
sender object
e System.ComponentModel.AsyncCompletedEventArgs
Результат void

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

FileMD публичное свойство

public string FileMD
Результат string

ImageRating публичное свойство

public PostRating ImageRating
Результат PostRating

PostId публичное свойство

public string PostId
Результат string

_height публичное свойство

public int _height
Результат int

_width публичное свойство

public int _width
Результат int