C# Class Telegram.Model.Wrappers.DialogModel

Inheritance: INotifyPropertyChanged
Show file Open project: naphaso/kilogram Class Usage Examples

Public Properties

Property Type Description
_currentStatus DialogStatus

Protected Properties

Property Type Description
chatTyping UserTyping>.Dictionary
messages ObservableCollectionUI
session Telegram.MTProto.TelegramSession
userTyping UserTyping

Public Methods

Method Description
ClearDialogHistory ( ) : System.Threading.Tasks.Task
DialogModel ( TelegramSession session ) : System
LoadMore ( ) : System.Threading.Tasks.Task
LoadMorePossible ( ) : bool
MarkRead ( List messages ) : void
OpenedRead ( ) : void
ProcessNewMessage ( MessageModel messageModel ) : void
Read ( BinaryReader reader ) : void
RemoveAndClearDialog ( ) : System.Threading.Tasks.Task
SendMessage ( string message ) : Task
SendRead ( ) : System.Threading.Tasks.Task
SendTyping ( bool typing ) : void
SetTyping ( ) : void
SetTyping ( int userid ) : void
UpdateTypings ( ) : void
Write ( BinaryWriter writer ) : void

Protected Methods

Method Description
DialogOnPropertyChanged ( object sender, PropertyChangedEventArgs propertyChangedEventArgs ) : void

Private Methods

Method Description
GetPreviewConfig ( ) : DialogStatus
OnPropertyChanged ( [ propertyName = null ) : void

Method Details

ClearDialogHistory() public abstract method

public abstract ClearDialogHistory ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

DialogModel() public method

public DialogModel ( TelegramSession session ) : System
session Telegram.MTProto.TelegramSession
return System

DialogOnPropertyChanged() protected method

protected DialogOnPropertyChanged ( object sender, PropertyChangedEventArgs propertyChangedEventArgs ) : void
sender object
propertyChangedEventArgs System.ComponentModel.PropertyChangedEventArgs
return void

LoadMore() public abstract method

public abstract LoadMore ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

LoadMorePossible() public abstract method

public abstract LoadMorePossible ( ) : bool
return bool

MarkRead() public method

public MarkRead ( List messages ) : void
messages List
return void

OpenedRead() public method

public OpenedRead ( ) : void
return void

ProcessNewMessage() public method

public ProcessNewMessage ( MessageModel messageModel ) : void
messageModel MessageModel
return void

Read() public abstract method

public abstract Read ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

RemoveAndClearDialog() public abstract method

public abstract RemoveAndClearDialog ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SendMessage() public abstract method

public abstract SendMessage ( string message ) : Task
message string
return Task

SendRead() public abstract method

public abstract SendRead ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SendTyping() public abstract method

public abstract SendTyping ( bool typing ) : void
typing bool
return void

SetTyping() public method

public SetTyping ( ) : void
return void

SetTyping() public method

public SetTyping ( int userid ) : void
userid int
return void

UpdateTypings() public method

public UpdateTypings ( ) : void
return void

Write() public abstract method

public abstract Write ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

Property Details

_currentStatus public property

public DialogStatus _currentStatus
return DialogStatus

chatTyping protected property

protected Dictionary chatTyping
return UserTyping>.Dictionary

messages protected property

protected ObservableCollectionUI messages
return ObservableCollectionUI

session protected property

protected TelegramSession,Telegram.MTProto session
return Telegram.MTProto.TelegramSession

userTyping protected property

protected UserTyping userTyping
return UserTyping