public OfflineSyncStatus GetOfflineSyncStatus() { OfflineSyncStatus syncStatus = null; LibSpotify.sp_offline_sync_status status = new LibSpotify.sp_offline_sync_status(); if (LibSpotify.sp_offline_sync_get_status_r(Handle, ref status)) { syncStatus = new OfflineSyncStatus() { QueuedBytes = Convert.ToInt64(status.queued_bytes), QueuedTracks = status.queued_tracks, DoneBytes = Convert.ToInt64(status.done_bytes), DoneTracks = status.done_tracks, CopiedBytes = Convert.ToInt64(status.copied_bytes), CopiedTracks = status.copied_tracks, WillNotCopyTracks = status.willnotcopy_tracks, ErorrTracks = status.error_tracks, Syncing = status.syncing }; } return(syncStatus); }