2018-07-06 13:30:00 +00:00
|
|
|
package com.eu.habbo.habbohotel.items;
|
|
|
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
2019-05-26 21:14:53 +03:00
|
|
|
public class SoundTrack {
|
2018-07-06 13:30:00 +00:00
|
|
|
private int id;
|
|
|
|
private String name;
|
|
|
|
private String author;
|
|
|
|
private String code;
|
|
|
|
private String data;
|
|
|
|
private int length;
|
|
|
|
|
2019-05-26 21:14:53 +03:00
|
|
|
public SoundTrack(ResultSet set) throws SQLException {
|
2018-07-06 13:30:00 +00:00
|
|
|
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");
|
|
|
|
}
|
|
|
|
|
2019-05-26 21:14:53 +03:00
|
|
|
public int getId() {
|
2019-03-18 01:22:00 +00:00
|
|
|
return this.id;
|
2018-07-06 13:30:00 +00:00
|
|
|
}
|
|
|
|
|
2019-05-26 21:14:53 +03:00
|
|
|
public String getName() {
|
2019-03-18 01:22:00 +00:00
|
|
|
return this.name;
|
2018-07-06 13:30:00 +00:00
|
|
|
}
|
|
|
|
|
2019-05-26 21:14:53 +03:00
|
|
|
public String getAuthor() {
|
2019-03-18 01:22:00 +00:00
|
|
|
return this.author;
|
2018-07-06 13:30:00 +00:00
|
|
|
}
|
|
|
|
|
2019-05-26 21:14:53 +03:00
|
|
|
public String getCode() {
|
2019-03-18 01:22:00 +00:00
|
|
|
return this.code;
|
2018-07-06 13:30:00 +00:00
|
|
|
}
|
|
|
|
|
2019-05-26 21:14:53 +03:00
|
|
|
public String getData() {
|
2019-03-18 01:22:00 +00:00
|
|
|
return this.data;
|
2018-07-06 13:30:00 +00:00
|
|
|
}
|
|
|
|
|
2019-05-26 21:14:53 +03:00
|
|
|
public int getLength() {
|
2019-03-18 01:22:00 +00:00
|
|
|
return this.length;
|
2018-07-06 13:30:00 +00:00
|
|
|
}
|
|
|
|
}
|