-- This file is part of the Wire Server implementation.
--
-- Copyright (C) 2022 Wire Swiss GmbH <opensource@wire.com>
--
-- This program is free software: you can redistribute it and/or modify it under
-- the terms of the GNU Affero General Public License as published by the Free
-- Software Foundation, either version 3 of the License, or (at your option) any
-- later version.
--
-- This program is distributed in the hope that it will be useful, but WITHOUT
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-- FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
-- details.
--
-- You should have received a copy of the GNU Affero General Public License along
-- with this program. If not, see <https://www.gnu.org/licenses/>.

module Test.Wire.API.Golden.Generated.UserConnection_user where

import Data.Domain (Domain (..))
import Data.Id (Id (Id))
import Data.Json.Util (readUTCTimeMillis)
import Data.Qualified (Qualified (..))
import Data.UUID qualified as UUID (fromString)
import Imports
import Wire.API.Connection
  ( Relation (..),
    UserConnection (..),
  )

testObject_UserConnection_user_1 :: UserConnection
testObject_UserConnection_user_1 =
  UserConnection
    { ucFrom = Id (fromJust (UUID.fromString "00000000-0000-0004-0000-000100000001")),
      ucTo = Qualified (Id (fromJust (UUID.fromString "00000001-0000-0001-0000-000300000002"))) (Domain "farway.golden.example.com"),
      ucStatus = Pending,
      ucLastUpdate = fromJust (readUTCTimeMillis "1864-05-07T21:52:21.955Z"),
      ucConvId = Nothing
    }

testObject_UserConnection_user_2 :: UserConnection
testObject_UserConnection_user_2 =
  UserConnection
    { ucFrom = Id (fromJust (UUID.fromString "00000004-0000-0002-0000-000000000004")),
      ucTo = Qualified (Id (fromJust (UUID.fromString "00000001-0000-0003-0000-000100000000"))) (Domain "faraway.golden.example.com"),
      ucStatus = Cancelled,
      ucLastUpdate = fromJust (readUTCTimeMillis "1864-05-11T10:43:38.227Z"),
      ucConvId = Just $ Qualified (Id (fromJust (UUID.fromString "00000002-0000-0001-0000-000000000004"))) (Domain "nice-and-close-to-home.golden.example.com")
    }
