mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Move credentials related proto from Prensence to internal
Replace PresenceIdentityType with proto PiperOrigin-RevId: 467294239
This commit is contained in:
@@ -76,8 +76,8 @@ cc_library(
|
||||
"//internal/platform:base",
|
||||
"//internal/platform:cancellation_flag",
|
||||
"//internal/platform:uuid",
|
||||
"//internal/proto:credential_cc_proto",
|
||||
"//presence:credential",
|
||||
"//presence/proto:credential_cc_proto",
|
||||
"@com_google_absl//absl/container:flat_hash_map",
|
||||
"@com_google_absl//absl/strings",
|
||||
],
|
||||
|
||||
@@ -21,25 +21,26 @@
|
||||
#include <vector>
|
||||
|
||||
#include "internal/platform/exception.h"
|
||||
#include "internal/proto/credential.pb.h"
|
||||
#include "presence/presence_identity.h"
|
||||
#include "presence/proto/credential.pb.h"
|
||||
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
namespace api {
|
||||
|
||||
using ::nearby::presence::PresenceIdentity;
|
||||
using ::nearby::presence::proto::PrivateCredential;
|
||||
using ::nearby::presence::proto::PublicCredential;
|
||||
using ::nearby::internal::IdentityType;
|
||||
using ::nearby::internal::PrivateCredential;
|
||||
using ::nearby::internal::PublicCredential;
|
||||
|
||||
enum class CredentialOperationStatus {
|
||||
kFailed = 0,
|
||||
kSucceeded = 1,
|
||||
kUnknown = 0,
|
||||
kFailed = 1,
|
||||
kSucceeded = 2,
|
||||
};
|
||||
|
||||
struct CredentialSelector {
|
||||
std::string account_name;
|
||||
PresenceIdentity::IdentityType identity_type;
|
||||
IdentityType identity_type;
|
||||
};
|
||||
|
||||
enum PublicCredentialType {
|
||||
|
||||
Reference in New Issue
Block a user