Move low-level models to raw module
This commit is contained in:
parent
83fa18e048
commit
a22fcff2bf
|
@ -1,4 +1,4 @@
|
|||
use listenbrainz::models::request::DeleteListen;
|
||||
use listenbrainz::raw::request::DeleteListen;
|
||||
use listenbrainz::Client;
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
use listenbrainz::models::request::{ListenType, Payload, SubmitListens, TrackMetadata};
|
||||
use listenbrainz::raw::request::{ListenType, Payload, SubmitListens, TrackMetadata};
|
||||
use listenbrainz::Client;
|
||||
|
||||
fn now() -> i64 {
|
||||
|
|
|
@ -4,8 +4,8 @@ use serde::Serialize;
|
|||
use ureq::Agent;
|
||||
|
||||
use crate::endpoint::Endpoint;
|
||||
use crate::models::request::*;
|
||||
use crate::models::response::*;
|
||||
use crate::raw::request::*;
|
||||
use crate::raw::response::*;
|
||||
use crate::Error;
|
||||
|
||||
const API_ROOT_URL: &str = "https://api.listenbrainz.org/1/";
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
mod client;
|
||||
mod endpoint;
|
||||
mod error;
|
||||
pub mod models;
|
||||
pub mod raw;
|
||||
|
||||
pub use crate::client::Client;
|
||||
pub use crate::error::Error;
|
||||
|
|
Loading…
Reference in New Issue