Updated ksoap2-android library and cleaned unused stuff

This commit is contained in:
Juan Miguel Boyero Corral 2011-02-16 20:02:49 +01:00
parent cc6167a3cc
commit 290a27f217
9 changed files with 0 additions and 1085 deletions

View File

@ -1,169 +0,0 @@
/*
* This file is part of SWADroid.
*
* Copyright (C) 2010 Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*
* SWADroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SWADroid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SWADroid. If not, see <http://www.gnu.org/licenses/>.
*/
package es.ugr.swad.swadroid.model;
import java.util.Hashtable;
import org.ksoap2.serialization.PropertyInfo;
/**
* Class for store a mark
* @author Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*/
public class Mark extends Model {
/**
* Course code
*/
private int crscod;
/**
* Group code
*/
private int grpcod;
/**
* Mark file path
*/
private String path;
/**
* Mark header
*/
private int header;
/**
* Mark footer
*/
private int footer;
/**
* Constructor
* @param id Mark identifier
* @param crscod Course code
* @param grpcod Group code
* @param path Mark file path
* @param header Mark header
* @param footer Mark footer
*/
public Mark(int id, int crscod, int grpcod, String path, int header,
int footer) {
super(id);
this.crscod = crscod;
this.grpcod = grpcod;
this.path = path;
this.header = header;
this.footer = footer;
}
/**
* Gets course code
* @return Course code
*/
public int getCrscod() {
return crscod;
}
/**
* Sets course code
* @param crscod Course code
*/
public void setCrscod(int crscod) {
this.crscod = crscod;
}
/**
* Gets group code
* @return Group code
*/
public int getGrpcod() {
return grpcod;
}
/**
* Sets group code
* @param grpcod Group code
*/
public void setGrpcod(int grpcod) {
this.grpcod = grpcod;
}
/**
* Gets mark file path
* @return Mark file path
*/
public String getPath() {
return path;
}
/**
* Sets mark file path
* @param path Mark file path
*/
public void setPath(String path) {
this.path = path;
}
/**
* Gets mark header
* @return Mark header
*/
public int getHeader() {
return header;
}
/**
* Sets mark header
* @param header Mark header
*/
public void setHeader(int header) {
this.header = header;
}
/**
* Gets mark footer
* @return Mark footer
*/
public int getFooter() {
return footer;
}
/**
* Sets mark footer
* @param footer Mark footer
*/
public void setFooter(int footer) {
this.footer = footer;
}
public Object getProperty(int arg0) {
// TODO Auto-generated method stub
return null;
}
public int getPropertyCount() {
// TODO Auto-generated method stub
return 0;
}
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
// TODO Auto-generated method stub
}
public void setProperty(int arg0, Object arg1) {
// TODO Auto-generated method stub
}
}

View File

@ -1,146 +0,0 @@
/*
* This file is part of SWADroid.
*
* Copyright (C) 2010 Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*
* SWADroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SWADroid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SWADroid. If not, see <http://www.gnu.org/licenses/>.
*/
package es.ugr.swad.swadroid.model;
import java.util.Hashtable;
import org.ksoap2.serialization.PropertyInfo;
/**
* Class for store a message
* @author Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*/
public class MessageContent extends Model {
/**
* Message subject
*/
private String subject;
/**
* Message content
*/
private String content;
/**
* Flag of message expanded
*/
private boolean expanded;
/**
* User code
*/
private int usrcod;
/**
* Constructor
* @param id Message identifier
* @param subject Message subject
* @param content Message content
* @param expanded Flag of message expanded
* @param usrcod User code
*/
public MessageContent(int id, String subject, String content, boolean expanded, int usrcod) {
super(id);
this.subject = subject;
this.content = content;
this.expanded = expanded;
this.usrcod = usrcod;
}
/**
* Gets message subject
* @return Message subject
*/
public String getSubject() {
return subject;
}
/**
* Sets message subject
* @param subject Message subject
*/
public void setSubject(String subject) {
this.subject = subject;
}
/**
* Gets message content
* @return Message content
*/
public String getContent() {
return content;
}
/**
* Sets message content
* @param content Message content
*/
public void setContent(String content) {
this.content = content;
}
/**
* Gets user code
* @return User code
*/
public int getUsrcod() {
return usrcod;
}
/**
* Sets user code
* @param usrcod User code
*/
public void setUsrcod(int usrcod) {
this.usrcod = usrcod;
}
/**
* Gets flag of message expanded
* @return Flag of message expanded
*/
public boolean isExpanded() {
return expanded;
}
/**
* Sets flag of message expanded
* @param expanded Flag of message expanded
*/
public void setExpanded(boolean expanded) {
this.expanded = expanded;
}
public Object getProperty(int arg0) {
// TODO Auto-generated method stub
return null;
}
public int getPropertyCount() {
// TODO Auto-generated method stub
return 0;
}
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
// TODO Auto-generated method stub
}
public void setProperty(int arg0, Object arg1) {
// TODO Auto-generated method stub
}
}

View File

@ -1,104 +0,0 @@
/*
* This file is part of SWADroid.
*
* Copyright (C) 2010 Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*
* SWADroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SWADroid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SWADroid. If not, see <http://www.gnu.org/licenses/>.
*/
package es.ugr.swad.swadroid.model;
/**
* Class for store a received message
* @author Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*/
public class MessageReceived extends MessageContent {
/**
* Flag of message notified
*/
private boolean notified;
/**
* Flag of message open
*/
private boolean open;
/**
* Flag of message replied
*/
private boolean replied;
/**
* Constructor
* @param id Message identifier
* @param subject Message subject
* @param content Message content
* @param notified Flag of message notified
* @param open Flag of message open
* @param replied Flag of message replied
* @param expanded Flag of message expanded
*/
public MessageReceived(int id, String subject, String content, int usrcod,
boolean notified, boolean open, boolean replied, boolean expanded) {
super(id, subject, content, expanded, usrcod);
this.notified = notified;
this.open = open;
this.replied = replied;
}
/**
* Gets flag of message notified
* @return Flag of message notified
*/
public boolean isNotified() {
return notified;
}
/**
* Sets flag of message notified
* @param notified Flag of message notified
*/
public void setNotified(boolean notified) {
this.notified = notified;
}
/**
* Gets flag of message open
* @return Flag of message open
*/
public boolean isOpen() {
return open;
}
/**
* Sets flag of message open
* @param open Flag of message open
*/
public void setOpen(boolean open) {
this.open = open;
}
/**
* Gets flag of message replied
* @return Flag of message replied
*/
public boolean isReplied() {
return replied;
}
/**
* Sets flag of message replied
* @param replied Flag of message replied
*/
public void setReplied(boolean replied) {
this.replied = replied;
}
}

View File

@ -1,83 +0,0 @@
/*
* This file is part of SWADroid.
*
* Copyright (C) 2010 Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*
* SWADroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SWADroid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SWADroid. If not, see <http://www.gnu.org/licenses/>.
*/
package es.ugr.swad.swadroid.model;
/**
* Class for store a sent message
* @author Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*/
public class MessageSent extends MessageContent {
/**
* Course code
*/
private int crscod;
/**
* Date and time's creation of message
*/
private String creattime;
/**
* Constructor
* @param id Message identifier
* @param subject Message subject
* @param content Message content
* @param expanded Flag of message expanded
* @param usrcod User code
* @param crscod Course code
* @param creattime Date and time's creation of message
*/
public MessageSent(int id, String subject, String content,
boolean expanded, int usrcod, int crscod, String creattime) {
super(id, subject, content, expanded, usrcod);
this.crscod = crscod;
this.creattime = creattime;
}
/**
* Gets course code
* @return Course code
*/
public int getCrscod() {
return crscod;
}
/**
* Sets course code
* @param crscod Course code
*/
public void setCrscod(int crscod) {
this.crscod = crscod;
}
/**
* Gets date and time's creation of message
* @return Date and time's creation of message
*/
public String getCreattime() {
return creattime;
}
/**
* Sets date and time's creation of message
* @param creattime Date and time's creation of message
*/
public void setCreattime(String creattime) {
this.creattime = creattime;
}
}

View File

@ -1,146 +0,0 @@
/*
* This file is part of SWADroid.
*
* Copyright (C) 2010 Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*
* SWADroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SWADroid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SWADroid. If not, see <http://www.gnu.org/licenses/>.
*/
package es.ugr.swad.swadroid.model;
import java.util.Hashtable;
import org.ksoap2.serialization.PropertyInfo;
/**
* Class for store a notice
* @author Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*/
public class Notice extends Model {
/**
* Notice timestamp
*/
private int timestamp;
/**
* Notice description
*/
private String description;
/**
* Constructor
* @param id Notice identifier
* @param timestamp Notice timestamp
* @param description Notice description
*/
public Notice(int id, int timestamp, String description) {
super(id);
this.timestamp = timestamp;
this.description = description;
}
/**
* Gets notice timestamp
* @return Notice timestamp
*/
public int getTimestamp() {
return timestamp;
}
/**
* Sets notice timestamp
* @param timestamp Notice timestamp
*/
public void setTimestamp(int timestamp) {
this.timestamp = timestamp;
}
/**
* Gets notice description
* @return Notice description
*/
public String getDescription() {
return description;
}
/**
* Sets notice description
* @param description Notice description
*/
public void setDescription(String description) {
this.description = description;
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result
+ ((description == null) ? 0 : description.hashCode());
result = prime * result + timestamp;
return result;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
Notice other = (Notice) obj;
if (description == null) {
if (other.description != null)
return false;
} else if (!description.equals(other.description))
return false;
if (timestamp != other.timestamp)
return false;
return true;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "Notice [timestamp=" + timestamp + ", description="
+ description + "]";
}
public Object getProperty(int arg0) {
// TODO Auto-generated method stub
return null;
}
public int getPropertyCount() {
// TODO Auto-generated method stub
return 0;
}
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
// TODO Auto-generated method stub
}
public void setProperty(int arg0, Object arg1) {
// TODO Auto-generated method stub
}
}

View File

@ -1,145 +0,0 @@
/*
* This file is part of SWADroid.
*
* Copyright (C) 2010 Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*
* SWADroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SWADroid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SWADroid. If not, see <http://www.gnu.org/licenses/>.
*/
package es.ugr.swad.swadroid.model;
import java.util.Hashtable;
import org.ksoap2.serialization.PropertyInfo;
/**
* Class for store a student
* @author Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*/
public class Student extends Model {
/**
* Student's dni
*/
private String dni;
/**
* Student's first name
*/
private String firstName;
/**
* Student's first surname
*/
private String surname1;
/**
* Student's second surname
*/
private String surname2;
/**
* Constructor
* @param dni Student's dni
* @param firstName Student's first name
* @param surname1 Student's first surname
* @param surname2 Student's second surname
*/
public Student(int id, String dni, String firstName, String surname1,
String surname2) {
super(id);
this.firstName = firstName;
this.surname1 = surname1;
this.surname2 = surname2;
}
/**
* Gets student's dni
* @return Student's dni
*/
public String getDni() {
return dni;
}
/**
* Sets student's dni
* @param dni Student's dni
*/
public void setDni(String dni) {
this.dni = dni;
}
/**
* Gets student's first name
* @return Student's first name
*/
public String getFirstName() {
return firstName;
}
/**
* Sets student's first name
* @param Student's first name
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/**
* Gets student's first surname
* @return Student's first surname
*/
public String getSurname1() {
return surname1;
}
/**
* Sets student's first surname
* @param Student's first surname
*/
public void setSurname1(String surname1) {
this.surname1 = surname1;
}
/**
* Gets student's second surname
* @return Student's second surname
*/
public String getSurname2() {
return surname2;
}
/**
* Sets student's second surname
* @param Student's second surname
*/
public void setSurname2(String surname2) {
this.surname2 = surname2;
}
public Object getProperty(int arg0) {
// TODO Auto-generated method stub
return null;
}
public int getPropertyCount() {
// TODO Auto-generated method stub
return 0;
}
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
// TODO Auto-generated method stub
}
public void setProperty(int arg0, Object arg1) {
// TODO Auto-generated method stub
}
}

View File

@ -1,168 +0,0 @@
/*
* This file is part of SWADroid.
*
* Copyright (C) 2010 Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*
* SWADroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SWADroid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SWADroid. If not, see <http://www.gnu.org/licenses/>.
*/
package es.ugr.swad.swadroid.model;
import java.util.Hashtable;
import org.ksoap2.serialization.PropertyInfo;
/**
* Class for store a test configuration
* @author Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*/
public class TestConfig extends Model {
/**
* Default value for number of questions in test
*/
private int def;
/**
* Maximum value for number of questions in test
*/
private int max;
/**
* Minimum value for number of questions in test
*/
private int min;
/**
* Minimum time (in seconds) by question between two tests
*/
private int mintimenxttstperqst;
/**
* Feedback type received by student
*/
private String feedback;
/**
* @param id Course code
* @param def Default value for number of questions in test
* @param max Maximum value for number of questions in test
* @param min Minimum value for number of questions in test
* @param mintimenxttstperqst Minimum time between two tests
* @param feedback Feedback type received by student
*/
public TestConfig(int id, int def, int max, int min,
int mintimenxttstperqst, String feedback) {
super(id);
this.def = def;
this.max = max;
this.min = min;
this.mintimenxttstperqst = mintimenxttstperqst;
this.feedback = feedback;
}
/**
* Gets default value for number of questions in test
* @return Default value for number of questions in test
*/
public int getDef() {
return def;
}
/**
* Sets default value for number of questions in test
* @param def Default value for number of questions in test
*/
public void setDef(int def) {
this.def = def;
}
/**
* Gets maximum value for number of questions in test
* @return Maximum value for number of questions in test
*/
public int getMax() {
return max;
}
/**
* Sets maximum value for number of questions in test
* @param max Maximum value for number of questions in test
*/
public void setMax(int max) {
this.max = max;
}
/**
* Gets minimum value for number of questions in test
* @return Minimum value for number of questions in test
*/
public int getMin() {
return min;
}
/**
* Sets minimum value for number of questions in test
* @param min Minimum value for number of questions in test
*/
public void setMin(int min) {
this.min = min;
}
/**
* Gets minimum time between two tests
* @return Minimum time between two tests
*/
public int getMintimenxttstperqst() {
return mintimenxttstperqst;
}
/**
* Sets minimum time between two tests
* @param mintimenxttstperqst Minimum time between two tests
*/
public void setMintimenxttstperqst(int mintimenxttstperqst) {
this.mintimenxttstperqst = mintimenxttstperqst;
}
/**
* Gets feedback type received by student
* @return Feedback type received by student
*/
public String getFeedback() {
return feedback;
}
/**
* Sets feedback type received by student
* @param feedback Feedback type received by student
*/
public void setFeedback(String feedback) {
this.feedback = feedback;
}
public Object getProperty(int arg0) {
// TODO Auto-generated method stub
return null;
}
public int getPropertyCount() {
// TODO Auto-generated method stub
return 0;
}
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
// TODO Auto-generated method stub
}
public void setProperty(int arg0, Object arg1) {
// TODO Auto-generated method stub
}
}

View File

@ -1,124 +0,0 @@
/*
* This file is part of SWADroid.
*
* Copyright (C) 2010 Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*
* SWADroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SWADroid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SWADroid. If not, see <http://www.gnu.org/licenses/>.
*/
package es.ugr.swad.swadroid.model;
import java.util.Hashtable;
import org.ksoap2.serialization.PropertyInfo;
/**
* Class for store a test tag
* @author Juan Miguel Boyero Corral <juanmi1982@gmail.com>
*/
public class TestTag extends Model {
/**
* Course code
*/
private int crsCod;
/**
* Tag's text
*/
private String tagTxt;
/**
* Flag for know if the tag is hidden
*/
private boolean tagHidden;
/**
* Constructor
* @param id Tag identifier
* @param crsCod Course code
* @param tagTxt Tag's text
* @param tagHidden Flag for know if the tag is hidden
*/
public TestTag(int id, int crsCod, String tagTxt, boolean tagHidden) {
super(id);
this.crsCod = crsCod;
this.tagTxt = tagTxt;
this.tagHidden = tagHidden;
}
/**
* Gets course code
* @return Course code
*/
public int getCrsCod() {
return crsCod;
}
/**
* Sets course code
* @param crsCod Course code
*/
public void setCrsCod(int crsCod) {
this.crsCod = crsCod;
}
/**
* Gets tag's text
* @return Tag's text
*/
public String getTagTxt() {
return tagTxt;
}
/**
* Sets tag's text
* @param tagTxt Tag's text
*/
public void setTagTxt(String tagTxt) {
this.tagTxt = tagTxt;
}
/**
* Gets hidden tag flag
* @return Hidden tag flag
*/
public boolean isTagHidden() {
return tagHidden;
}
/**
* Sets hidden tag flag
* @param tagHidden Hidden tag flag
*/
public void setTagHidden(boolean tagHidden) {
this.tagHidden = tagHidden;
}
public Object getProperty(int arg0) {
// TODO Auto-generated method stub
return null;
}
public int getPropertyCount() {
// TODO Auto-generated method stub
return 0;
}
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
// TODO Auto-generated method stub
}
public void setProperty(int arg0, Object arg1) {
// TODO Auto-generated method stub
}
}