Examples of PlaylistDeletedException


Examples of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException

  public void setShared(boolean shouldBeShared) throws PlaylistDeletedException, PlaylistException {
    try {
      this.iTunesCom.setProperty("Shared", shouldBeShared);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e){
      throw new PlaylistException("Sharing is disabled, or is enabled for all playlists (not selected playlists), or playlist can't be shared.");
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException

  public boolean isSmart() throws PlaylistDeletedException {
    try {
      return this.iTunesCom.getPropertyAsBoolean("Smart");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException

  public ITUserPlaylistSpecialKind getSpecialKind() throws PlaylistDeletedException {
    try {
      return new ITUserPlaylistSpecialKind(this.iTunesCom.getPropertyAsEnum("SpecialKind"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException

    try {
      return new ITUserPlaylistImpl(this.iTunesCom.getPropertyAsDispatchObject("Parent"));
    } catch (DispatchObjectNullException e) {
      return null; // no parent
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException

  public void setParent(IITUserPlaylist parent) throws PlaylistDeletedException {
    try {
      this.iTunesCom.setProperty("Parent", parent.getDispatchObject());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException

  public IITTrack item(long index) throws PlaylistDeletedException {
    try {
      DispatchObject dispatch = super.itemDispatchObject(index);
      return ITTrackImpl.create(dispatch);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException();
    } catch (ObjectDeletedException e) {
      throw new PlaylistDeletedException();
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException

  public IITTrack itemByName(String name) throws PlaylistDeletedException {
    try {
      DispatchObject dispatch = super.itemByNameDispatchObject(name);
      return ITTrackImpl.create(dispatch);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException();
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException

  public IITTrack itemByPersistentID(long highID, long lowID) throws PlaylistDeletedException {
    try {
      DispatchObject dispatch = super.itemByPersistentIDDispatchObject(highID, lowID);
      return ITTrackImpl.create(dispatch);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException();
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException

  public IITTrack itemByPlayOrder(long index) throws PlaylistDeletedException {
    try {
      DispatchObject dispatch = this.iTunesCom.callFunction("ItemByPlayOrder", index).getDispatch();
      return ITTrackImpl.create(dispatch);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException();
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.exceptions.PlaylistDeletedException

  public IITPlaylist createPlaylist(String playlistName) throws PlaylistDeletedException {
    try {
      return ITPlaylistImpl.newIITPlaylist(this.iTunesCom.callFunction("CreatePlaylist", playlistName)
          .getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.