use chrono::Utc;
use crate::base::{Cot, Point};
use super::detail::TakMarkerDetail;
pub const DEFAULT_COT_TYPE_MARKER: &str = "a-o-G";
impl Default for Cot<TakMarkerDetail> {
fn default() -> Self {
let now = Utc::now();
let detail = TakMarkerDetail {
..Default::default()
};
Self {
version: "2.0".to_string(),
uid: uuid::Uuid::new_v4().to_string(),
cot_type: DEFAULT_COT_TYPE_MARKER.to_string(),
time: now,
start: now,
stale: now + chrono::Duration::days(1),
how: Some("m-g".to_string()),
detail,
point: Point::north_pole(),
}
}
}