Syntax
Public Function AddDeliveryItem(ByRef SymID As Integer, ByRef ItemID As String, ByRef ItemImageLink As String,ByRef ItemName As String, ByRef ItemDesc As String, ByRef ItemWeight As String, ByRef ItemEnabled As Boolean) As CallingResultsEnum
Description
This function adds the physical item of a specific symbol to be requested later on.If AddDeliveryItem succeeded the DeliveryItemAdded event fire, otherwise DeliveryItemAddFailed event fire.
Parameters
Parameter |
Description |
SymID |
The trading symbol number that want to add a physical item for it ,value of type is Integer. |
ItemID |
Physical Item number ,value of type is String. |
ItemImageLink |
Link for physical item image,value of type is String. |
ItemName |
Name of the physical item ,value of type is String. |
ItemDesc |
Description of the physical item,value of type is String. |
ItemWeight |
Weight of item such as Kg,value of type is String. |
ItemEnabled |
Value of type is Boolean,if it false, the user can’t see the deliver that had been added |
Return value
This Returns value of type CallingResultsEnum. if the request sent to the server successfully it will return SuccessResult.
Sample
Private Sub Button1_Click (sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim Result As CallingResultsEnum
Result = API.AddDeliveryItem (Symbol.ID, "1234", "GOLD.JEPG", "GOLD", "Desc", "Ounce", False)
End Sub
See Also
VertexFX Backoffice API Index
|