Martin Traedholm

Greenhorn
+ Follow
since Aug 20, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Martin Traedholm

@Ulf

Thank you for the reply.

A person request a resource e.g. some water from a tube for x min. We want a system that the user from a mobile phone can purchase that resource through a ticket system. We are planning of making a server where the user can send in a request for a ticket. The question is how the paying system shall be built, there is mainly 2 ways to go for android/ios app solution or make a SMS system. Does any know if there a customize SMS ticket system available out there? My task is to investigating witch solutions there is on the marked and then to take the decision. Our main thing is that it shall be easy for user.

Hope that gave an overview over the problem and what I'm asking for.
11 years ago
Hey
I’m about to make a mobile ticket system that should look like the following (see picture):



The user pays for a ticket through SMS or similar (maybe android mobile application), and we are looking if there is a functional paying system (on the drawing the payment system) we can purchase somewhere? Our first though is an SMS payment through the phone bill, but if there other system that is just as simple as SMS payment just tell me.

Thanks
Martin Trædholm
11 years ago
Thank you for the help, I manage to solve my problem, the part with the Comparator lead me in the right direction.

Have a nice weekend.
11 years ago
Hey
I don't know how to make UML or simular well enough. But I made a quick sketch of the system

The sorting is according to time, the lowest one first.

From an android unit I read an XML file, unpack the calendar information and add event/notification to single a list. The reason why I put into a single list is mainly because I shall know which index of an Event a given notification point at. The reason I need that information is because I need to send all that information to a Digital watch (MetaWatch) and that just see a long sorted array with both events and notification in it.

Hope it makes sence.

Edit: I need to learn how to spell
11 years ago

Campbell Ritchie wrote:Sould the notification class extend the MetaWatchDataV2 class? What about this?But why are you putting what appears to be a subclass instance inside the Notification class? Are you trying to create a linked list of Notifications or something?



Hey thanks for the reply. I put in an Object Event in the class because I need to know which object in the list (see below) is related to that notification, and I wanted to hear if there is any pitfalls doing that. After the list is sorted I need to know witch index in the list each notification point to.

11 years ago
Hello

I have some data from a XML file which holds calendar information. The data I get from the XML file is when event arrives and notification to a certain event arrives. Those data needs to be sorted in the manner of the element arrives first is at the top. Furthermore the notification needs to know the event it is refering t, in others words the notification needs to know the index number of the event in the list.

Im fairly new in Java but learning, anyway here is my code for a solution to the problem describe above and would like to know if there is something that could go wrong (especilly with the way I have implementet the way of notification knowing the index of event)








This gives the following output:
2012 06 21 12 00
test.Martin.Event@94884d
Pointer to Event in list: 1
2012 06 21 12 30
test.Martin.Event@94884d
2012 06 21 13 00
test.Martin.Event@1807ca8
Pointer to Event in list: 3
2012 06 21 13 30
test.Martin.Event@1807ca8


Edit: edit headline
11 years ago