You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
145 lines
2.8 KiB
145 lines
2.8 KiB
/*
|
|
* Copyright (C) 2022 jimj316
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
package moe.nekojimi.chords;
|
|
|
|
import java.net.URL;
|
|
import java.util.List;
|
|
import moe.nekojimi.chords.commands.Invocation;
|
|
import moe.nekojimi.musicsearcher.Result;
|
|
|
|
/**
|
|
*
|
|
* @author jimj316
|
|
*/
|
|
public class SongRequest
|
|
{
|
|
private Invocation invocation;
|
|
|
|
private String query;
|
|
private URL url;
|
|
|
|
private List<Result> searchResults;
|
|
|
|
private Result result;
|
|
|
|
private Song song;
|
|
|
|
private double progress = -1;
|
|
private double eta = -1;
|
|
|
|
|
|
public List<Result> getSearchResults()
|
|
{
|
|
return searchResults;
|
|
}
|
|
|
|
public void setSearchResults(List<Result> searchResults)
|
|
{
|
|
this.searchResults = searchResults;
|
|
}
|
|
|
|
public Result getResult()
|
|
{
|
|
return result;
|
|
}
|
|
|
|
public void setResult(Result result)
|
|
{
|
|
this.result = result;
|
|
}
|
|
|
|
public Invocation getInvocation()
|
|
{
|
|
return invocation;
|
|
}
|
|
|
|
public void setInvocation(Invocation invocation)
|
|
{
|
|
this.invocation = invocation;
|
|
}
|
|
|
|
// public Message getRequestMessage()
|
|
// {
|
|
// return requestMessage;
|
|
// }
|
|
//
|
|
// public void setRequestMessage(Message requestMessage)
|
|
// {
|
|
// this.requestMessage = requestMessage;
|
|
// }
|
|
//
|
|
// public Message getResponseMessage()
|
|
// {
|
|
// return responseMessage;
|
|
// }
|
|
//
|
|
// public void setResponseMessage(Message responseMessage)
|
|
// {
|
|
// this.responseMessage = responseMessage;
|
|
// }
|
|
|
|
public String getQuery()
|
|
{
|
|
return query;
|
|
}
|
|
|
|
public void setQuery(String query)
|
|
{
|
|
this.query = query;
|
|
}
|
|
|
|
public URL getUrl()
|
|
{
|
|
return url;
|
|
}
|
|
|
|
public void setUrl(URL url)
|
|
{
|
|
this.url = url;
|
|
}
|
|
|
|
public Song getSong()
|
|
{
|
|
return song;
|
|
}
|
|
|
|
public void setSong(Song song)
|
|
{
|
|
this.song = song;
|
|
}
|
|
|
|
public double getProgress()
|
|
{
|
|
return progress;
|
|
}
|
|
|
|
public void setProgress(double progress)
|
|
{
|
|
this.progress = progress;
|
|
}
|
|
|
|
public double getEta()
|
|
{
|
|
return eta;
|
|
}
|
|
|
|
public void setEta(double eta)
|
|
{
|
|
this.eta = eta;
|
|
}
|
|
|
|
}
|
|
|