internal void UpdatePackage( ulong uid, MyPackageState state ) { throw new NotImplementedException(); }
/// <summary> /// updates the state of a package with the given uid /// </summary> /// <param name="uid">uid of the package that will be updated</param> /// <param name="state">the new state of the package</param> /// <returns> /// true: state update successful /// false: no package with given uid was found /// </returns> public bool UpdatePackage( ulong uid, MyPackageState state ) { var package = this.GetPackageByUID( uid ); if ( null == packages ) return false; package.State = state; database.UpdatePackage( uid, state ); return true; }