*** id: f5fa93b9-9956-4b2f-a51a-0f0aae80073a title: CallDevice slug: /dotnet/reference/calling/call-device max-toc-depth: 3 ---------------- [call-device-device-type]: /docs/server-sdk/v2/dotnet/reference/calling/call-device-type # SignalWire.Relay.Calling.CallDevice This object represents a call device. ## Constructor The only constructor is the default constructor, properties should all be assigned by initializer or after construction. **Parameters** None **Examples** > Basic Example ```csharp CallDevice device = new CallDevice { Type = CallDevice.DeviceType.phone, Parameters = new CallDevice.PhoneParams { ToNumber = "+1XXXXXXXXXX", FromNumber = "+1YYYYYYYYYY", } }; ``` ## Properties | Property | Type | Description | | ------------ | --------------------------------------------------------------------------- | ----------------------------------------------------------- | | `Type` | [`SignalWire.Relay.Calling.CallDevice.DeviceType`][call-device-device-type] | This object indicates the type of the configuration object. | | `Parameters` | object | The configuration object for the device. | ## Methods ## ParametersAs\() This is a helper method to convert the `Parameters` to the real type. **Parameters** | Parameter | Type | Required | Description | | --------- | ---- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- | | `T` | Type | required | This is the data type for the conversion, see [`SignalWire.Relay.Calling.CallDevice.DeviceType`][call-device-device-type] for more information. | **Returns** `T` - This is an instance of the data type resulting from the conversion, see [`SignalWire.Relay.Calling.CallDevice.DeviceType`][call-device-device-type] for more information. **Examples** ```csharp CallDevice.PhoneParams phoneParams = device.ParametersAs(); ``` ## Events None