Beispiel #1
0
 internal Track(SlimCli client, Hashtable map)
 {
     this.client = client;
     id          = parseInt(map[FIELD_ID]);
     title       = (string)map[FIELD_TITLE];
     genre       = (string)map[FIELD_GENRE];
     artist      = (string)map[FIELD_ARTIST];
     composer    = (string)map[FIELD_COMPOSER];
     band        = (string)map[FIELD_BAND];
     conductor   = (string)map[FIELD_CONDUCTOR];
     album       = (string)map[FIELD_ALBUM];
     duration    = parseFloat(map[FIELD_DURATION]);
     disc        = parseInt(map[FIELD_DISC]);
     disccount   = parseInt(map[FIELD_DISCCOUNT]);
     tracknum    = parseInt(map[FIELD_TRACKNUM]);
     year        = (string)map[FIELD_YEAR];
     bpm         = parseInt(map[FIELD_BPM]);
     comment     = (string)map[FIELD_COMMENT];
     contentType = (string)map[FIELD_CONTENT_TYPE];
     tagVersion  = (string)map[FIELD_TAGVERSION];
     bitrate     = (string)map[FIELD_BITRATE];
     filesize    = parseInt(map[FIELD_FILESIZE]);
     drm         = (string)map[FIELD_DRM];
     coverArt    = "1".Equals(map[FIELD_COVERART]);
     modTime     = parseDate(map[FIELD_MODTIME]);
     fileUrl     = new Uri((string)map[FIELD_FILEURL]);
 }
Beispiel #2
0
 internal Player(SlimCli client, Hashtable map)
 {
     this.client = client;
     index       = int.Parse((string)map[FIELD_INDEX]);
     id          = (string)map[FIELD_ID];
     ip          = (string)map[FIELD_IP];
     name        = (string)map[FIELD_NAME];
     model       = (string)map[FIELD_MODEL];
     displayType = (string)map[FIELD_DISPLAYTYPE];
     connected   = "1".Equals((string)map[FIELD_CONNECTED]);
 }
Beispiel #3
0
 internal Server(SlimCli client)
 {
     this.client        = client;
     this.serverVersion = getServerVersion();
 }
Beispiel #4
0
 public SlimCliUtils(SlimCli client)
 {
     this.client = client;
 }