Copyright (c) 2012, Spotify AB
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:...
If you think the Android project VisEQ listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package com.lsu.vizeq;
//www.java2s.comimport java.util.ArrayList;
publicclass Artist
{
public String mArtist;
public String mUri;
public ArrayList<Track> mTrackRequests = new ArrayList<Track>();
publicint mNumTrackRequests;
publicint mNumPeopleRequestingArtist;
publicint mArtistWeight;
publicfloat mPercentage;
public Artist(String artist, Track trackRequests, int numTrackRequests, int personCount)
{
mArtist = artist;
mTrackRequests.add(trackRequests);
mNumTrackRequests = numTrackRequests;
mNumPeopleRequestingArtist = personCount;
mArtistWeight = numTrackRequests * personCount;
}
publicvoid requestTrack(Track trackRequests)
{
mTrackRequests.add(trackRequests);
}
publicvoid saveNameAndStats(String artist, int numTrackRequests, int personCount)
{
mArtist = artist;
mNumTrackRequests = numTrackRequests;
mNumPeopleRequestingArtist = personCount;
mArtistWeight = numTrackRequests * personCount;
}
public Artist()
{
}
}