VancedMicroG/play-services-location-api/src/main/java/com/google/android/gms/location/internal/LocationRequestInternal.java

71 lines
2.1 KiB
Java
Raw Normal View History

2015-09-28 16:30:12 +00:00
/*
* Copyright 2013-2015 microG Project Team
*
* 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.
*/
2015-01-11 11:53:42 +00:00
package com.google.android.gms.location.internal;
2015-10-03 20:19:38 +00:00
import com.google.android.gms.location.LocationRequest;
2015-01-12 10:02:10 +00:00
import org.microg.safeparcel.AutoSafeParcelable;
2015-10-03 20:19:38 +00:00
import org.microg.safeparcel.SafeParceled;
import java.util.List;
2015-01-11 11:53:42 +00:00
2015-01-12 10:02:10 +00:00
public class LocationRequestInternal extends AutoSafeParcelable {
2015-01-11 11:53:42 +00:00
2015-10-03 20:19:38 +00:00
@SafeParceled(1000)
private int versionCode = 1;
@SafeParceled(1)
public LocationRequest request;
@SafeParceled(2)
public boolean requestNlpDebugInfo;
@SafeParceled(3)
public boolean restorePendingIntentListeners;
@SafeParceled(4)
public boolean triggerUpdate;
@SafeParceled(value = 5, subClass = ClientIdentity.class)
public List<ClientIdentity> clients;
@SafeParceled(6)
public String tag;
@SafeParceled(7)
public boolean hideFromAppOps;
2017-01-18 16:27:38 +00:00
@SafeParceled(8)
public boolean forceCoarseLocation;
2015-10-03 20:19:38 +00:00
@Override
public String toString() {
return "LocationRequestInternal{" +
"request=" + request +
", requestNlpDebugInfo=" + requestNlpDebugInfo +
", restorePendingIntentListeners=" + restorePendingIntentListeners +
", triggerUpdate=" + triggerUpdate +
", clients=" + clients +
", tag='" + tag + '\'' +
", hideFromAppOps=" + hideFromAppOps +
2017-01-18 16:27:38 +00:00
", forceCoarseLocation=" + forceCoarseLocation +
2015-10-03 20:19:38 +00:00
'}';
}
2015-04-13 21:52:26 +00:00
public static final Creator<LocationRequestInternal> CREATOR = new AutoCreator<LocationRequestInternal>(LocationRequestInternal.class);
2015-01-11 11:53:42 +00:00
}