2018-07-06 15:30:00 +02:00
|
|
|
package com.eu.habbo.habbohotel.items;
|
|
|
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
|
|
|
public class SoundTrack
|
|
|
|
{
|
|
|
|
private int id;
|
|
|
|
private String name;
|
|
|
|
private String author;
|
|
|
|
private String code;
|
|
|
|
private String data;
|
|
|
|
private int length;
|
|
|
|
|
|
|
|
public SoundTrack(ResultSet set) throws SQLException
|
|
|
|
{
|
|
|
|
this.id = set.getInt("id");
|
|
|
|
this.name = set.getString("name");
|
|
|
|
this.author = set.getString("author");
|
|
|
|
this.code = set.getString("code");
|
|
|
|
this.data = set.getString("track");
|
|
|
|
this.length = set.getInt("length");
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getId()
|
|
|
|
{
|
2019-03-18 02:22:00 +01:00
|
|
|
return this.id;
|
2018-07-06 15:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getName()
|
|
|
|
{
|
2019-03-18 02:22:00 +01:00
|
|
|
return this.name;
|
2018-07-06 15:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getAuthor()
|
|
|
|
{
|
2019-03-18 02:22:00 +01:00
|
|
|
return this.author;
|
2018-07-06 15:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getCode()
|
|
|
|
{
|
2019-03-18 02:22:00 +01:00
|
|
|
return this.code;
|
2018-07-06 15:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getData()
|
|
|
|
{
|
2019-03-18 02:22:00 +01:00
|
|
|
return this.data;
|
2018-07-06 15:30:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public int getLength()
|
|
|
|
{
|
2019-03-18 02:22:00 +01:00
|
|
|
return this.length;
|
2018-07-06 15:30:00 +02:00
|
|
|
}
|
|
|
|
}
|