aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_server/src/cmd/commands/session_exit.rs
blob: 47048aba330434537eb51b78242962434addcf26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (C) 2021-2021 The Whirlsplash Collective
// SPDX-License-Identifier: GPL-3.0-only

use crate::{
  cmd::{constants::Command, extendable::Creatable},
  net::property_list::PropertyList,
};

pub struct SessionExit(pub PropertyList);
impl Creatable for SessionExit {
  fn create(&self) -> Vec<u8> { self.0.clone().as_bytes(Command::SessExit as i32, 0x01) }
}