/*
 * Websocket Subscription Schemas
 *
 * Schema definitions Websocket API subscriptions for Thalex exchange.
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountRfqHistoryNotification {
    /// Channel name as in subscription.
    #[serde(rename = "channel_name")]
    pub channel_name: String,
    #[serde(rename = "notification")]
    pub notification: models::AccountRfqHistoryPayload,
}

impl AccountRfqHistoryNotification {
    pub fn new(
        channel_name: String,
        notification: models::AccountRfqHistoryPayload,
    ) -> AccountRfqHistoryNotification {
        AccountRfqHistoryNotification {
            channel_name,
            notification,
        }
    }
}
