mobi.cangol.mobile.stat.traffic.DateTraffic Maven / Gradle / Ivy
/**
* Copyright (c) 2013 Cangol
*
* 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 mobi.cangol.mobile.stat.traffic;
import mobi.cangol.mobile.db.DatabaseField;
import mobi.cangol.mobile.db.DatabaseTable;
/**
* Created by weixuewu on 16/1/23.
*/
@DatabaseTable("DATE_TRAFFIC")
public class DateTraffic {
@DatabaseField(primaryKey = true, notNull = true, value = "id")
public int id;
@DatabaseField(value = "status", notNull = true)
public int status;
@DatabaseField(value = "date", notNull = true)
public String date;
@DatabaseField(value = "uid", notNull = true)
public int uid;
@DatabaseField(value = "total_rx", notNull = true)
public long totalRx;
@DatabaseField(value = "total_tx", notNull = true)
public long totalTx;
@DatabaseField(value = "mobile_rx", notNull = true)
public long mobileRx;
@DatabaseField(value = "mobile_tx", notNull = true)
public long mobileTx;
@DatabaseField(value = "wifi_rx", notNull = true)
public long wifiRx;
@DatabaseField(value = "wifi_tx", notNull = true)
public long wifiTx;
@Override
public String toString() {
return "DateTraffic{" +
"id=" + id +
", status=" + status +
", date='" + date + '\'' +
", uid=" + uid +
", totalRx=" + totalRx +
", totalTx=" + totalTx +
", mobileRx=" + mobileRx +
", mobileTx=" + mobileTx +
", wifiRx=" + wifiRx +
", wifiTx=" + wifiTx +
'}';
}
}