mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-09-12 03:34:15 +02:00
39 lines
967 B
Java
39 lines
967 B
Java
![]() |
package com.eu.habbo.habbohotel.wired;
|
||
|
|
||
|
public class WiredGiveRewardItem
|
||
|
{
|
||
|
public final int id;
|
||
|
public final boolean badge;
|
||
|
public final String data;
|
||
|
public final int probability;
|
||
|
|
||
|
public WiredGiveRewardItem(int id, boolean badge, String data, int probability)
|
||
|
{
|
||
|
this.id = id;
|
||
|
this.badge = badge;
|
||
|
this.data = data;
|
||
|
this.probability = probability;
|
||
|
}
|
||
|
|
||
|
public WiredGiveRewardItem(String dataString)
|
||
|
{
|
||
|
String[] data = dataString.split(",");
|
||
|
|
||
|
this.id = Integer.valueOf(data[0]);
|
||
|
this.badge = data[1].equalsIgnoreCase("0");
|
||
|
this.data = data[2];
|
||
|
this.probability = Integer.valueOf(data[3]);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String toString()
|
||
|
{
|
||
|
return this.id + "," + (this.badge ? 0 : 1) + "," + this.data + "," + probability;
|
||
|
}
|
||
|
|
||
|
public String wiredString()
|
||
|
{
|
||
|
return (this.badge ? 0 : 1) + "," + this.data + "," + probability;
|
||
|
}
|
||
|
}
|