signal-messaging-dbus-1.0.0.2: Bindings for signal-cli's DBus interface
Copyright(c) Lia Lenckowski 2022
LicenseAGPL
Maintainerlialenck@protonmail.com
Stabilityexperimental
PortabilityGNU/Linux, MacOS
Safe HaskellNone
LanguageHaskell2010

SignalDBus.Types

Description

This module contains types used by this package. Please import SignalDBus instead.

Synopsis

Documentation

data SignalConn Source #

Opaque connection object, aquired by withConn or withConnNum

Constructors

SignalConn !ObjectPath !Client 

data Timestamp Source #

Timestamp, represented as an ms-precision unix timestamp

newtype Device Source #

Opaque object representing a linked device

Constructors

Device Int64 

Instances

Instances details
Eq Device Source # 
Instance details

Defined in SignalDBus.Types

Methods

(==) :: Device -> Device -> Bool #

(/=) :: Device -> Device -> Bool #

Read Device Source # 
Instance details

Defined in SignalDBus.Types

Show Device Source # 
Instance details

Defined in SignalDBus.Types

IsVariant Device Source # 
Instance details

Defined in SignalDBus.Types

IsValue Device Source # 
Instance details

Defined in SignalDBus.Types

newtype Group Source #

Opaque Group object, aquired by listGroups or getGroup

Constructors

Group ObjectPath 

Instances

Instances details
Eq Group Source # 
Instance details

Defined in SignalDBus.Types

Methods

(==) :: Group -> Group -> Bool #

(/=) :: Group -> Group -> Bool #

Ord Group Source # 
Instance details

Defined in SignalDBus.Types

Methods

compare :: Group -> Group -> Ordering #

(<) :: Group -> Group -> Bool #

(<=) :: Group -> Group -> Bool #

(>) :: Group -> Group -> Bool #

(>=) :: Group -> Group -> Bool #

max :: Group -> Group -> Group #

min :: Group -> Group -> Group #

Read Group Source # 
Instance details

Defined in SignalDBus.Types

Show Group Source # 
Instance details

Defined in SignalDBus.Types

Methods

showsPrec :: Int -> Group -> ShowS #

show :: Group -> String #

showList :: [Group] -> ShowS #

IsVariant Group Source # 
Instance details

Defined in SignalDBus.Types

IsValue Group Source # 
Instance details

Defined in SignalDBus.Types

data ReceivedMessage Source #

Received message

Constructors

SyncMessage

Message sent by a linked device to someone else

Fields

  • Timestamp

    When this message was sent

  • String

    Message sender (TODO: always yourself?)

  • (Maybe Group)

    If sent in a group, corresponding group object

  • String

    Message text

  • [String]

    Paths to stored attachments

Receipt

Read receipt sent by someone else in response to one of your messages

Fields

Message

Message sent to you by someone else

Fields

Orphan instances