X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=mythtv%2Fwar%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fmythtv%2FRecording.java;fp=mythtv%2Fwar%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fmythtv%2FRecording.java;h=0000000000000000000000000000000000000000;hb=03947cccfab5ffc636d5ce8262438cbed258ab5a;hp=cab43a6b76affb79b3c5b9fe1a5a3bd854154672;hpb=3882f585f7bc464a4fe4b227f7ad5f043332aaa7;p=utils diff --git a/mythtv/war/src/main/java/org/wamblee/mythtv/Recording.java b/mythtv/war/src/main/java/org/wamblee/mythtv/Recording.java deleted file mode 100644 index cab43a6b..00000000 --- a/mythtv/war/src/main/java/org/wamblee/mythtv/Recording.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2006 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.wamblee.mythtv; - -import java.io.Serializable; -import java.util.Date; - -/** - * - */ -public class Recording implements Serializable { - - private Channel _channel; - private Date _starttime; - - - private String _basename; - - private Date _progstart; - - private String _title; - - private String _subtitle; - - private long _filesize; - - protected Recording() { - // Empty - } - - /** - * @return the channel - */ - public Channel getChannel() { - return _channel; - } - - /** - * @return the basename - */ - public String getBasename() { - return _basename; - } - - /** - * @return the progstart - */ - public Date getStartTime() { - return _starttime; - } - - /** - * @return the progstart - */ - public Date getProgstart() { - return _progstart; - } - - /** - * @return the title - */ - public String getTitle() { - return _title; - } - - /** - * @return the subtitle - */ - public String getSubtitle() { - return _subtitle; - } - - /** - * @return the filesize - */ - public long getFilesize() { - return _filesize; - } - - public void setFilesize(long aFilesize) { - _filesize = aFilesize; - } - - /* (non-Javadoc) - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - return "Recording(" + _channel + "," + _basename + "," + _progstart + "," + _title + "," + _subtitle + ")"; - } - - /* (non-Javadoc) - * @see java.lang.Object#equals(java.lang.Object) - */ - @Override - public boolean equals(Object aObj) { - if ( !(aObj instanceof Recording)) { - return false; - } - Recording recording = (Recording)aObj; - return _channel.equals(recording._channel) && _starttime.equals(recording._starttime); - } - - /* (non-Javadoc) - * @see java.lang.Object#hashCode() - */ - @Override - public int hashCode() { - return _channel.hashCode()*10 + ((int)_starttime.getTime() %10); - } - -}