# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.10

import enum

import winsdk.system

_ns_module = winsdk.system._import_ns_module("Windows.System.Diagnostics.DevicePortal")

try:
    import winsdk.windows.applicationmodel.appservice
except ImportError:
    pass

try:
    import winsdk.windows.foundation
except ImportError:
    pass

try:
    import winsdk.windows.foundation.collections
except ImportError:
    pass

try:
    import winsdk.windows.networking.sockets
except ImportError:
    pass

try:
    import winsdk.windows.web.http
except ImportError:
    pass

class DevicePortalConnectionClosedReason(enum.IntEnum):
    UNKNOWN = 0
    RESOURCE_LIMITS_EXCEEDED = 1
    PROTOCOL_ERROR = 2
    NOT_AUTHORIZED = 3
    USER_NOT_PRESENT = 4
    SERVICE_TERMINATED = 5

_ns_module._register_DevicePortalConnectionClosedReason(DevicePortalConnectionClosedReason)

DevicePortalConnection = _ns_module.DevicePortalConnection
DevicePortalConnectionClosedEventArgs = _ns_module.DevicePortalConnectionClosedEventArgs
DevicePortalConnectionRequestReceivedEventArgs = _ns_module.DevicePortalConnectionRequestReceivedEventArgs
