News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Working with SMS Objects

Started by thiruvasagamani, Aug 08, 2008, 08:34 PM

Previous topic - Next topic

thiruvasagamani

Working with SMS Objects

You can create, modify, or delete SMS objects. Depending on the purpose of your script, your script might do a combination of these operations. For example, it might get an object, create a new one that is similar, and then delete the original. Your script might also repeat these operations many times. Your scripts will primarily consist of this limited set of operations.

To create SMS objects

Get the class that represents the objects.

Launch an instance of the class.

Set additional details (properties) on the instance.

Save the instance.

Assigning a unique identifier to the new object is not a step in the process of creating an SMS object. SMS automatically assigns unique identifiers to objects when they are saved.

To modify an object

Get an instance of the object.

Adjust the details (properties) on the instance.

Save the instance.

To delete an object

Get an instance of the object.

Delete it.

The first step of each of these operations (getting an instance of an object) was discussed in the "Getting SMS Objects" section earlier in this appendix. This section discusses how to launch instances, set properties, and delete objects.

Later sections discuss specific issues about working with collections, advertisements, and packages, but the same principles can be applied to all SMS objects.
Thiruvasakamani Karnan