--- /dev/null
+/**
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library 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 Lesser General Public License for more
+ * details.
+ */
+
+package moodle.model;
+
+import java.io.Serializable;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * This class is used by SOAP remote services.
+ *
+ * @author Pentila
+ * @generated
+ */
+public class MoodleUserSoap implements Serializable {
+ public static MoodleUserSoap toSoapModel(MoodleUser model) {
+ MoodleUserSoap soapModel = new MoodleUserSoap();
+
+ soapModel.setUserId(model.getUserId());
+ soapModel.setMoodleUserId(model.getMoodleUserId());
+ soapModel.setMoodleUserLogin(model.getMoodleUserLogin());
+ soapModel.setMoodlePassword(model.getMoodlePassword());
+ soapModel.setToken(model.getToken());
+
+ return soapModel;
+ }
+
+ public static MoodleUserSoap[] toSoapModels(MoodleUser[] models) {
+ MoodleUserSoap[] soapModels = new MoodleUserSoap[models.length];
+
+ for (int i = 0; i < models.length; i++) {
+ soapModels[i] = toSoapModel(models[i]);
+ }
+
+ return soapModels;
+ }
+
+ public static MoodleUserSoap[][] toSoapModels(MoodleUser[][] models) {
+ MoodleUserSoap[][] soapModels = null;
+
+ if (models.length > 0) {
+ soapModels = new MoodleUserSoap[models.length][models[0].length];
+ }
+ else {
+ soapModels = new MoodleUserSoap[0][0];
+ }
+
+ for (int i = 0; i < models.length; i++) {
+ soapModels[i] = toSoapModels(models[i]);
+ }
+
+ return soapModels;
+ }
+
+ public static MoodleUserSoap[] toSoapModels(List<MoodleUser> models) {
+ List<MoodleUserSoap> soapModels = new ArrayList<MoodleUserSoap>(models.size());
+
+ for (MoodleUser model : models) {
+ soapModels.add(toSoapModel(model));
+ }
+
+ return soapModels.toArray(new MoodleUserSoap[soapModels.size()]);
+ }
+
+ public MoodleUserSoap() {
+ }
+
+ public long getPrimaryKey() {
+ return _userId;
+ }
+
+ public void setPrimaryKey(long pk) {
+ setUserId(pk);
+ }
+
+ public long getUserId() {
+ return _userId;
+ }
+
+ public void setUserId(long userId) {
+ _userId = userId;
+ }
+
+ public long getMoodleUserId() {
+ return _moodleUserId;
+ }
+
+ public void setMoodleUserId(long moodleUserId) {
+ _moodleUserId = moodleUserId;
+ }
+
+ public String getMoodleUserLogin() {
+ return _moodleUserLogin;
+ }
+
+ public void setMoodleUserLogin(String moodleUserLogin) {
+ _moodleUserLogin = moodleUserLogin;
+ }
+
+ public String getMoodlePassword() {
+ return _moodlePassword;
+ }
+
+ public void setMoodlePassword(String moodlePassword) {
+ _moodlePassword = moodlePassword;
+ }
+
+ public String getToken() {
+ return _token;
+ }
+
+ public void setToken(String token) {
+ _token = token;
+ }
+
+ private long _userId;
+ private long _moodleUserId;
+ private String _moodleUserLogin;
+ private String _moodlePassword;
+ private String _token;
+}
\ No newline at end of file