mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-27 21:53:00 +00:00
Add some search APIs
This commit is contained in:
parent
d3c11f1e82
commit
ef5e6dc066
24 changed files with 517 additions and 2 deletions
|
@ -4,5 +4,6 @@ import com.google.android.gms.playlog.internal.LogEvent;
|
||||||
import com.google.android.gms.playlog.internal.PlayLoggerContext;
|
import com.google.android.gms.playlog.internal.PlayLoggerContext;
|
||||||
|
|
||||||
interface IPlayLogService {
|
interface IPlayLogService {
|
||||||
void event(String packageName, in PlayLoggerContext context, in LogEvent event) = 1;
|
void onEvent(String packageName, in PlayLoggerContext context, in LogEvent event) = 1;
|
||||||
|
void onMultiEvent(String packageName, in PlayLoggerContext context, in List<LogEvent> events) = 2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
parcelable ClearCorpusRequest;
|
|
@ -0,0 +1,3 @@
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
parcelable GetCorpusInfoRequest;
|
|
@ -0,0 +1,3 @@
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
parcelable GetCorpusStatusRequest;
|
|
@ -0,0 +1,3 @@
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
parcelable GetCorpusStatusResponse;
|
|
@ -0,0 +1,3 @@
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
parcelable RequestIndexingRequest;
|
|
@ -0,0 +1,3 @@
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
parcelable RequestIndexingResponse;
|
|
@ -0,0 +1,9 @@
|
||||||
|
package com.google.android.gms.search.corpora.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.search.corpora.RequestIndexingResponse;
|
||||||
|
import com.google.android.gms.search.corpora.GetCorpusStatusResponse;
|
||||||
|
|
||||||
|
interface ISearchCorporaCallbacks {
|
||||||
|
void onRequestIndexing(in RequestIndexingResponse response) = 1;
|
||||||
|
void onGetCorpusStatus(in GetCorpusStatusResponse response) = 3;
|
||||||
|
}
|
|
@ -1,5 +1,14 @@
|
||||||
package com.google.android.gms.search.corpora.internal;
|
package com.google.android.gms.search.corpora.internal;
|
||||||
|
|
||||||
interface ISearchCorporaService {
|
import com.google.android.gms.search.corpora.ClearCorpusRequest;
|
||||||
|
import com.google.android.gms.search.corpora.GetCorpusStatusRequest;
|
||||||
|
import com.google.android.gms.search.corpora.GetCorpusInfoRequest;
|
||||||
|
import com.google.android.gms.search.corpora.RequestIndexingRequest;
|
||||||
|
import com.google.android.gms.search.corpora.internal.ISearchCorporaCallbacks;
|
||||||
|
|
||||||
|
interface ISearchCorporaService {
|
||||||
|
void requestIndexing(in RequestIndexingRequest request, ISearchCorporaCallbacks callbacks) = 1;
|
||||||
|
void clearCorpus(in ClearCorpusRequest request, ISearchCorporaCallbacks callbacks) = 2;
|
||||||
|
void getCorpusStatus(in GetCorpusStatusRequest request, ISearchCorporaCallbacks callbacks) = 3;
|
||||||
|
void getCorpusInfo(in GetCorpusInfoRequest request, ISearchCorporaCallbacks callbacks) = 4;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
package com.google.android.gms.search.global.internal;
|
||||||
|
|
||||||
|
interface IGlobalSearchAdminService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
package com.google.android.gms.search.queries;
|
||||||
|
|
||||||
|
parcelable QueryRequest;
|
|
@ -0,0 +1,3 @@
|
||||||
|
package com.google.android.gms.search.queries;
|
||||||
|
|
||||||
|
parcelable QueryResponse;
|
|
@ -0,0 +1,7 @@
|
||||||
|
package com.google.android.gms.search.queries.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.search.queries.QueryResponse;
|
||||||
|
|
||||||
|
interface ISearchQueriesCallbacks {
|
||||||
|
void onQuery(in QueryResponse response) = 1;
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
package com.google.android.gms.search.queries.internal;
|
||||||
|
|
||||||
|
import com.google.android.gms.search.queries.QueryRequest;
|
||||||
|
import com.google.android.gms.search.queries.internal.ISearchQueriesCallbacks;
|
||||||
|
|
||||||
|
interface ISearchQueriesService {
|
||||||
|
void query(in QueryRequest request, ISearchQueriesCallbacks callbacks) = 1;
|
||||||
|
}
|
|
@ -0,0 +1,73 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.appdatasearch;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class QuerySpecification extends AutoSafeParcelable {
|
||||||
|
|
||||||
|
@SafeParceled(1000)
|
||||||
|
public final int versionCode;
|
||||||
|
@SafeParceled(1)
|
||||||
|
public final boolean b;
|
||||||
|
//@SafeParceled(value = 2, subType = "TODO")
|
||||||
|
public final List c;
|
||||||
|
//@SafeParceled(value = 3, subType = "TODO")
|
||||||
|
public final List d;
|
||||||
|
@SafeParceled(4)
|
||||||
|
public final boolean e;
|
||||||
|
@SafeParceled(5)
|
||||||
|
public final int f;
|
||||||
|
@SafeParceled(6)
|
||||||
|
public final int g;
|
||||||
|
@SafeParceled(7)
|
||||||
|
public final boolean h;
|
||||||
|
@SafeParceled(8)
|
||||||
|
public final int i;
|
||||||
|
|
||||||
|
private QuerySpecification() {
|
||||||
|
versionCode = 2;
|
||||||
|
b = false;
|
||||||
|
c = null;
|
||||||
|
d = null;
|
||||||
|
e = false;
|
||||||
|
f = 0;
|
||||||
|
g = 0;
|
||||||
|
h = false;
|
||||||
|
i = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "QuerySpecification{" +
|
||||||
|
"versionCode=" + versionCode +
|
||||||
|
", b=" + b +
|
||||||
|
", c=" + c +
|
||||||
|
", d=" + d +
|
||||||
|
", e=" + e +
|
||||||
|
", f=" + f +
|
||||||
|
", g=" + g +
|
||||||
|
", h=" + h +
|
||||||
|
", i=" + i +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final Creator<QuerySpecification> CREATOR = new AutoCreator<QuerySpecification>(QuerySpecification.class);
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.appdatasearch;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class SearchResults extends AutoSafeParcelable {
|
||||||
|
@SafeParceled(1000)
|
||||||
|
public final int versionCode = 2;
|
||||||
|
|
||||||
|
public static Creator<SearchResults> CREATOR = new AutoCreator<SearchResults>(SearchResults.class);
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
|
||||||
|
public class ClearCorpusRequest extends AutoSafeParcelable {
|
||||||
|
public static Creator<ClearCorpusRequest> CREATOR = new AutoCreator<ClearCorpusRequest>(ClearCorpusRequest.class);
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
|
||||||
|
public class GetCorpusInfoRequest extends AutoSafeParcelable {
|
||||||
|
public static Creator<GetCorpusInfoRequest> CREATOR = new AutoCreator<GetCorpusInfoRequest>(GetCorpusInfoRequest.class);
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class GetCorpusStatusRequest extends AutoSafeParcelable {
|
||||||
|
|
||||||
|
@SafeParceled(1000)
|
||||||
|
public final int versionCode;
|
||||||
|
|
||||||
|
@SafeParceled(1)
|
||||||
|
public final String packageName;
|
||||||
|
|
||||||
|
@SafeParceled(2)
|
||||||
|
public final String corpus;
|
||||||
|
|
||||||
|
private GetCorpusStatusRequest() {
|
||||||
|
versionCode = 1;
|
||||||
|
packageName = null;
|
||||||
|
corpus = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "GetCorpusStatusRequest{" +
|
||||||
|
"versionCode=" + versionCode +
|
||||||
|
", packageName='" + packageName + '\'' +
|
||||||
|
", corpus='" + corpus + '\'' +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<GetCorpusStatusRequest> CREATOR = new AutoCreator<GetCorpusStatusRequest>(GetCorpusStatusRequest.class);
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
import com.google.android.gms.appdatasearch.CorpusStatus;
|
||||||
|
import com.google.android.gms.common.api.Status;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class GetCorpusStatusResponse extends AutoSafeParcelable {
|
||||||
|
|
||||||
|
@SafeParceled(1000)
|
||||||
|
public final int versionCode;
|
||||||
|
|
||||||
|
@SafeParceled(1)
|
||||||
|
public final Status status;
|
||||||
|
|
||||||
|
@SafeParceled(2)
|
||||||
|
public final CorpusStatus corpusStatus;
|
||||||
|
|
||||||
|
private GetCorpusStatusResponse() {
|
||||||
|
versionCode = 1;
|
||||||
|
status = null;
|
||||||
|
corpusStatus = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCorpusStatusResponse(Status status, CorpusStatus corpusStatus) {
|
||||||
|
this.versionCode = 1;
|
||||||
|
this.status = status;
|
||||||
|
this.corpusStatus = corpusStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<GetCorpusStatusResponse> CREATOR = new AutoCreator<GetCorpusStatusResponse>(GetCorpusStatusResponse.class);
|
||||||
|
}
|
|
@ -0,0 +1,54 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class RequestIndexingRequest extends AutoSafeParcelable {
|
||||||
|
|
||||||
|
@SafeParceled(1000)
|
||||||
|
public final int versionCode;
|
||||||
|
|
||||||
|
@SafeParceled(1)
|
||||||
|
public final String packageName;
|
||||||
|
|
||||||
|
@SafeParceled(2)
|
||||||
|
public final String corpus;
|
||||||
|
|
||||||
|
@SafeParceled(3)
|
||||||
|
public final long sequenceNumber;
|
||||||
|
|
||||||
|
private RequestIndexingRequest() {
|
||||||
|
versionCode = 1;
|
||||||
|
packageName = null;
|
||||||
|
corpus = null;
|
||||||
|
sequenceNumber = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "RequestIndexingRequest{" +
|
||||||
|
"versionCode=" + versionCode +
|
||||||
|
", packageName='" + packageName + '\'' +
|
||||||
|
", corpus='" + corpus + '\'' +
|
||||||
|
", sequenceNumber=" + sequenceNumber +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<RequestIndexingRequest> CREATOR = new AutoCreator<RequestIndexingRequest>(RequestIndexingRequest.class);
|
||||||
|
}
|
|
@ -0,0 +1,48 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.search.corpora;
|
||||||
|
|
||||||
|
import com.google.android.gms.common.api.Status;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class RequestIndexingResponse extends AutoSafeParcelable {
|
||||||
|
|
||||||
|
@SafeParceled(1000)
|
||||||
|
public final int versionCode;
|
||||||
|
|
||||||
|
@SafeParceled(1)
|
||||||
|
public final Status status;
|
||||||
|
|
||||||
|
@SafeParceled(2)
|
||||||
|
public final boolean scheduledIndexing;
|
||||||
|
|
||||||
|
private RequestIndexingResponse() {
|
||||||
|
versionCode = 1;
|
||||||
|
status = null;
|
||||||
|
scheduledIndexing = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public RequestIndexingResponse(Status status, boolean scheduledIndexing) {
|
||||||
|
this.versionCode = 1;
|
||||||
|
this.status = status;
|
||||||
|
this.scheduledIndexing = scheduledIndexing;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<RequestIndexingResponse> CREATOR = new AutoCreator<RequestIndexingResponse>(RequestIndexingResponse.class);
|
||||||
|
}
|
|
@ -0,0 +1,57 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.search.queries;
|
||||||
|
|
||||||
|
import com.google.android.gms.appdatasearch.QuerySpecification;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
public class QueryRequest extends AutoSafeParcelable {
|
||||||
|
|
||||||
|
@SafeParceled(1000)
|
||||||
|
public int versionCode = 1;
|
||||||
|
@SafeParceled(1)
|
||||||
|
public String searchString;
|
||||||
|
@SafeParceled(2)
|
||||||
|
public String packageName;
|
||||||
|
@SafeParceled(3)
|
||||||
|
public String[] corpora;
|
||||||
|
@SafeParceled(4)
|
||||||
|
public int d;
|
||||||
|
@SafeParceled(5)
|
||||||
|
public int e;
|
||||||
|
@SafeParceled(6)
|
||||||
|
public QuerySpecification spec;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "QueryRequest{" +
|
||||||
|
"versionCode=" + versionCode +
|
||||||
|
", searchString='" + searchString + '\'' +
|
||||||
|
", packageName='" + packageName + '\'' +
|
||||||
|
", corpora=" + Arrays.toString(corpora) +
|
||||||
|
", d=" + d +
|
||||||
|
", e=" + e +
|
||||||
|
", spec=" + spec +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<QueryRequest> CREATOR = new AutoCreator<QueryRequest>(QueryRequest.class);
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.google.android.gms.search.queries;
|
||||||
|
|
||||||
|
import com.google.android.gms.appdatasearch.SearchResults;
|
||||||
|
import com.google.android.gms.common.api.Status;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class QueryResponse extends AutoSafeParcelable {
|
||||||
|
|
||||||
|
@SafeParceled(1000)
|
||||||
|
public final int versionCode;
|
||||||
|
|
||||||
|
@SafeParceled(1)
|
||||||
|
public final Status status;
|
||||||
|
|
||||||
|
@SafeParceled(2)
|
||||||
|
public final SearchResults results;
|
||||||
|
|
||||||
|
private QueryResponse() {
|
||||||
|
versionCode = 1;
|
||||||
|
status = null;
|
||||||
|
results = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public QueryResponse(Status status, SearchResults results) {
|
||||||
|
this.versionCode = 1;
|
||||||
|
this.status = status;
|
||||||
|
this.results = results;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<QueryResponse> CREATOR = new AutoCreator<QueryResponse>(QueryResponse.class);
|
||||||
|
}
|
Loading…
Reference in a new issue