Package com.jitcaforwin.cominterface.resultobject

Examples of com.jitcaforwin.cominterface.resultobject.ResultObject


  // TestTODO
  public boolean checkVersion(long majorVersion, long minorVersion) {
    Object params[] = new Object[2];
    params[0] = new Long(majorVersion);
    params[1] = new Long(minorVersion);
    ResultObject result = this.iTunesCom.callFunction("CheckVersion", params);
    return result.getBoolean();
  }
View Full Code Here


    Object params[] = new Object[4];
    params[0] = new Long(sourceID);
    params[1] = new Long(playlistID);
    params[2] = new Long(trackID);
    params[3] = new Long(databaseID);
    ResultObject result = this.iTunesCom.callFunction("GetITObjectByID", params);
    DispatchObject dispatch = result.getDispatch();
    return ITObjectImpl.newIITObject(dispatch);
  }
View Full Code Here

    DispatchObject dispatch = result.getDispatch();
    return ITObjectImpl.newIITObject(dispatch);
  }

  public IITPlaylist createPlaylist(String playlistName) {
    ResultObject result = this.iTunesCom.callFunction("CreatePlaylist", playlistName);
    DispatchObject dispatch = result.getDispatch();
    return ITPlaylistImpl.newIITPlaylist(dispatch);
  }
View Full Code Here

  }

  // TestTODO
  public IITEQPreset createEQPreset(String eqPresetName) throws JitcaException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CreateEQPreset", eqPresetName);
      DispatchObject dispatch = result.getDispatch();
      return new ITEQPresetImpl(dispatch);
    } catch (ITUNES_E_OBJECTEXISTS e) {
      throw new EQPresetExists(eqPresetName);
    } catch (DispatchObjectNullException e) {
      throw new JitcaGeneralException("EQPreset " + eqPresetName + "could not be created");
View Full Code Here

  // TestTODO
  public IITPlaylist createPlaylistInSource(String playlistName, IITSource source) throws ObjectLockedException,
      ObjectDeletedException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CreatePlaylistInSource", playlistName,
          source.getDispatchObject());
      return ITPlaylistImpl.newIITPlaylist(result.getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(source);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new ObjectLockedException(source);
    }
View Full Code Here

    }
  }

  // TestTODO
  public IITPlaylist createFolder(String folderName) {
    ResultObject result = this.iTunesCom.callFunction("CreateFolder", folderName);
    DispatchObject dispatch = result.getDispatch();
    return ITPlaylistImpl.newIITPlaylist(dispatch);
  }
View Full Code Here

  // TestTODO
  public IITPlaylist createFolderInSource(String folderName, IITSource source) throws ObjectLockedException,
      ObjectDeletedException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CreateFolderInSource", folderName,
          source.getDispatchObject());
      return ITPlaylistImpl.newIITPlaylist(result.getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(source);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new ObjectLockedException(source);
    }
View Full Code Here

  }

  // TestTODO
  public boolean canSetShuffle(IITPlaylist playlist) throws ObjectDeletedException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CanSetShuffle", playlist.getDispatchObject());
      return result.getBoolean();
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(playlist);
    }
  }
View Full Code Here

  }

  // TestTODO
  public boolean canSetSongRepeat(IITPlaylist playlist) throws ObjectDeletedException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CanSetRepeat", playlist.getDispatchObject());
      return result.getBoolean();
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(playlist);
    }
  }
View Full Code Here

    return this.iTunesCom.getPropertyAsString("LibraryXMLPath");
  }

  // TestTODO
  public long getITObjectPersistentIDHigh(IITObject object) {
    ResultObject result = this.iTunesCom.callFunction("ITObjectPersistentIDHigh", object.getDispatchObject());
    return result.getLong();
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.cominterface.resultobject.ResultObject

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.