Snapd.Notice – snapd-glib-2 Reference Manual
Packages
snapd-glib-2
Snapd
Notice
expire_after
first_occurred
id
key
last_data
last_occurred
last_occurred_nanoseconds
last_repeated
notice_type
occurrences
repeat_after
user_id
Notice
compare_last_occurred
get_expire_after
get_first_occurred
get_first_occurred2
get_id
get_key
get_last_data
get_last_data2
get_last_occurred
get_last_occurred2
get_last_occurred_nanoseconds
get_last_repeated
get_last_repeated2
get_notice_type
get_occurrences
get_repeat_after
get_user_id
Notice
Object Hierarchy:
Description:
[
CCode
( type_id =
"snapd_notice_get_type ()"
) ]
[
Version
( since =
"1.65"
) ]
public
class
Notice
:
Object
Notice
contains information on a notification element.
Namespace:
Snapd
Package:
snapd-glib-2
Content:
Properties:
public
int64
expire_after
{
get
;
construct
; }
public
DateTime
first_occurred
{
owned
get
;
construct
; }
public
string
id
{
get
;
construct
; }
public
string
key
{
get
;
construct
; }
public
HashTable
<
void
*,
void
*>
last_data
{
owned
get
;
construct
; }
public
DateTime
last_occurred
{
owned
get
;
construct
; }
public
int
last_occurred_nanoseconds
{
get
;
construct
; }
public
DateTime
last_repeated
{
owned
get
;
construct
; }
public
uint
notice_type
{
get
;
construct
; }
public
int64
occurrences
{
get
;
construct
; }
public
int64
repeat_after
{
get
;
construct
; }
public
string
user_id
{
get
;
construct
; }
Creation methods:
protected
Notice
()
Methods:
public
int
compare_last_occurred
(
Notice
notice_to_compare)
Compare the last_occurred fields (and the last_occurred_nanosecond if available) of both notices, and returns whether the first one is before, same or after the second one.
public
TimeSpan
get_expire_after
()
Get the time interval after this notification can expire.
public
DateTime
get_first_occurred
()
Get the time this notification first occurred.
public
unowned
DateTime
get_first_occurred2
()
Get the time this notification first occurred.
public
unowned
string
get_id
()
Get the unique ID for this notice.
public
unowned
string
get_key
()
Get the notice-id or the instance-name, depending on the type.
public
HashTable
<
void
*,
void
*>
get_last_data
()
Get the data of the notice.
public
unowned
HashTable
<
void
*,
void
*>
get_last_data2
()
Get the data of the notice.
public
DateTime
get_last_occurred
()
Get the time this notification last occurred.
public
unowned
DateTime
get_last_occurred2
()
Get the time this notification last occurred.
public
int
get_last_occurred_nanoseconds
()
Get the nanoseconds value of *last-occurred*, exactly as sent by snapd.
public
DateTime
get_last_repeated
()
Get the time this notification last repeated.
public
unowned
DateTime
get_last_repeated2
()
Get the time this notification last repeated.
public
NoticeType
get_notice_type
()
Gets the type of notice this is.
public
int64
get_occurrences
()
Get the number of times that this notification has been triggered.
public
TimeSpan
get_repeat_after
()
Get the time interval after this notification can be repeated.
public
unowned
string
get_user_id
()
Get the user ID for this notice, or NULL if no user is defined
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref