Package com.github.hakko.musiccabinet.domain.model.library

Examples of com.github.hakko.musiccabinet.domain.model.library.TrackPlayCount


    verifyLibraryTrack(parser, 99, "The Radio Dept.", "Gibraltar", 41);
  }
 
  private void verifyLibraryTrack(ScrobbledTracksParser parser,
      int libraryTrackIndex, String artistName, String trackName, int playCount) {
    TrackPlayCount trackPlayCount = parser.getTrackPlayCounts().get(libraryTrackIndex);
    assertTrue(artistName.equals(trackPlayCount.getTrack().getArtist().getName()));
    assertTrue(trackName.equals(trackPlayCount.getTrack().getName()));
    assertEquals(playCount, trackPlayCount.getPlayCount());
  }
View Full Code Here


    if (TAG_TRACKS.equals(qName)) {
      page = toShort(attributes.getValue(ATTR_PAGE));
      totalPages = toShort(attributes.getValue(ATTR_TOTAL_PAGES));
    } else if (TAG_TRACK.equals(qName)) {
      scope = TRACK;
      currentTrackPlayCount = new TrackPlayCount();
      currentTrackPlayCount.setTrack(new Track());
      currentTrackPlayCount.getTrack().setArtist(new Artist());
    } else if (TAG_ALBUM.equals(qName)) {
      scope = ALBUM;
    } else if (TAG_ARTIST.equals(qName)) {
View Full Code Here

      @Override
      public TrackPlayCount mapRow(ResultSet rs, int rowNum) throws SQLException {
        String artistName = rs.getString(1);
        String trackName = rs.getString(2);
        int playCount = rs.getInt(3);
        return new TrackPlayCount(artistName, trackName, playCount);
      }
    });
   
    return trackPlayCounts;
  }
View Full Code Here

TOP

Related Classes of com.github.hakko.musiccabinet.domain.model.library.TrackPlayCount

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.