Пример #1
0
 /// <summary>Copy constructor.</summary>
 /// <param name="status">Object to copy values from</param>
 public MPDCurrentStatus(org.gateshipone.malp.mpdservice.mpdprotocol.mpdobjects.MPDCurrentStatus
                         status)
 {
     pVolume           = status.pVolume;
     pRepeat           = status.pRepeat;
     pRandom           = status.pRandom;
     pSinglePlayback   = status.pSinglePlayback;
     pConsume          = status.pConsume;
     pPlaylistVersion  = status.pPlaylistVersion;
     pPlaylistLength   = status.pPlaylistLength;
     pCurrentSongIndex = status.pCurrentSongIndex;
     pNextSongIndex    = status.pNextSongIndex;
     pSamplerate       = status.pSamplerate;
     pBitDepth         = status.pBitDepth;
     pChannelCount     = status.pChannelCount;
     pBitrate          = status.pBitrate;
     pElapsedTime      = status.pElapsedTime;
     pTrackLength      = status.pTrackLength;
     pUpdateDBJob      = status.pUpdateDBJob;
     pPlaybackState    = status.pPlaybackState;
 }
Пример #2
0
 public MPDCurrentStatus()
 {
     pVolume           = 0;
     pRepeat           = 0;
     pRandom           = 0;
     pSinglePlayback   = 0;
     pConsume          = 0;
     pPlaylistVersion  = 0;
     pPlaylistLength   = 0;
     pCurrentSongIndex = -1;
     pNextSongIndex    = 0;
     pSamplerate       = 0;
     pBitDepth         = "0";
     pChannelCount     = 0;
     pBitrate          = 0;
     pElapsedTime      = 0;
     pTrackLength      = 0;
     pUpdateDBJob      = -1;
     pPlaybackState    = org.gateshipone.malp.mpdservice.mpdprotocol.mpdobjects.MPDCurrentStatus.MPD_PLAYBACK_STATE
                         .MPD_STOPPED;
 }
Пример #3
0
 protected internal MPDCurrentStatus(android.os.Parcel @in)
 {
     /* Create this object from parcel */
     pVolume           = @in.readInt();
     pRepeat           = @in.readInt();
     pRandom           = @in.readInt();
     pSinglePlayback   = @in.readInt();
     pConsume          = @in.readInt();
     pPlaylistVersion  = @in.readInt();
     pPlaylistLength   = @in.readInt();
     pCurrentSongIndex = @in.readInt();
     pNextSongIndex    = @in.readInt();
     pSamplerate       = @in.readInt();
     pBitDepth         = @in.readString();
     pChannelCount     = @in.readInt();
     pBitrate          = @in.readInt();
     pElapsedTime      = @in.readInt();
     pTrackLength      = @in.readInt();
     pUpdateDBJob      = @in.readInt();
     pPlaybackState    = org.gateshipone.malp.mpdservice.mpdprotocol.mpdobjects.MPDCurrentStatus.MPD_PLAYBACK_STATE
                         .values()[@in.readInt()];
 }
Пример #4
0
 public virtual void setPlaybackState(org.gateshipone.malp.mpdservice.mpdprotocol.mpdobjects.MPDCurrentStatus.MPD_PLAYBACK_STATE
                                      pPlaybackState)
 {
     this.pPlaybackState = pPlaybackState;
 }