mobi.cangol.mobile.stat.traffic.AppTraffic 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("APP_TRAFFIC")
public class AppTraffic {
@DatabaseField(primaryKey = true, notNull = true)
public int _id;
@DatabaseField(value = "package_name", notNull = true)
public String packageName;
@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 "AppTraffic{" +
"_id=" + _id +
", packageName='" + packageName + '\'' +
", uid=" + uid +
", totalRx=" + totalRx +
", totalTx=" + totalTx +
", mobileRx=" + mobileRx +
", mobileTx=" + mobileTx +
", wifiRx=" + wifiRx +
", wifiTx=" + wifiTx +
'}';
}
}