From 2998b2c67d9f1c94298810c636ef30ff6075a7de Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Fri, 2 Dec 2022 23:31:02 +0100 Subject: [PATCH] feat: add UpdateWatchStatus function (#1291) This commit adds the UpdateWatchStatus method --- wsapi.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wsapi.go b/wsapi.go index 75a0457..6c82388 100644 --- a/wsapi.go +++ b/wsapi.go @@ -361,6 +361,14 @@ func (s *Session) UpdateGameStatus(idle int, name string) (err error) { return s.UpdateStatusComplex(*newUpdateStatusData(idle, ActivityTypeGame, name, "")) } +// UpdateWatchStatus is used to update the user's watch status. +// If idle>0 then set status to idle. +// If name!="" then set movie/stream. +// if otherwise, set status to active, and no activity. +func (s *Session) UpdateWatchStatus(idle int, name string) (err error) { + return s.UpdateStatusComplex(*newUpdateStatusData(idle, ActivityTypeWatching, name, "")) +} + // UpdateStreamingStatus is used to update the user's streaming status. // If idle>0 then set status to idle. // If name!="" then set game.