Skip to content

Commit

Permalink
add delete requests
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDavenport committed May 4, 2024
1 parent 18e83c1 commit 4b9d9ff
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions gamercade_app/src/task_manager/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ pub enum DownloadStatus {
pub enum HttpRequest {
DownloadRom(WithSession<DownloadRom>),
UploadRom(WithSession<UploadRom>),
DownloadImage(u64),
DeleteRom(WithSession<i64>),
DownloadImage(i64),
UploadImage(WithSession<UploadImage>),
DeleteImage(WithSession<i64>),
}

#[derive(Debug)]
Expand Down Expand Up @@ -125,8 +127,22 @@ impl TaskRequest<HttpManagerState> for HttpRequest {
.unwrap(),
}
}
HttpRequest::DownloadImage(request) => todo!(),
HttpRequest::UploadImage(request) => todo!(),
HttpRequest::DeleteRom(request) => {
// TODO: Hit the platform service to delete the rom
todo!()
}
HttpRequest::DownloadImage(request) => {
// TODO: Hit the platform service and download the image file
todo!()
}
HttpRequest::UploadImage(request) => {
// TODO: Upload the image to the service
todo!()
}
HttpRequest::DeleteImage(request) => {
// TODO: Hit the platform service to delete the image
todo!()
}
}
}
}
Expand Down

0 comments on commit 4b9d9ff

Please sign in to comment.