<reponame>JustAnotherArchivist/ircstates<filename>ircstates/emit.py
from typing import List, Optional
from .user import User
from .channel import Channel

class Emit(object):
    command:    Optional[str] = None
    subcommand: Optional[str] = None

    text:   Optional[str]       = None
    tokens: Optional[List[str]] = None

    finished: Optional[bool] = None

    self:        Optional[bool] = None
    self_source: Optional[bool] = None
    self_target: Optional[bool] = None

    user:        Optional[User] = None
    user_source: Optional[User] = None
    user_target: Optional[User] = None

    users: Optional[List[User]] = None

    channel:        Optional[Channel] = None
    channel_source: Optional[Channel] = None
    channel_target: Optional[Channel] = None

    target: Optional[str] = None

from typing import List, Optional
from .user import User
from .channel import Channel

class Emit(object):
    command:    Optional[str] = None
    subcommand: Optional[str] = None

    text:   Optional[str]       = None
    tokens: Optional[List[str]] = None

    finished: Optional[bool] = None

    self:        Optional[bool] = None
    self_source: Optional[bool] = None
    self_target: Optional[bool] = None

    user:        Optional[User] = None
    user_source: Optional[User] = None
    user_target: Optional[User] = None

    users: Optional[List[User]] = None

    channel:        Optional[Channel] = None
    channel_source: Optional[Channel] = None
    channel_target: Optional[Channel] = None

    target: Optional[str] = None