[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 738
  • Last Modified:

A typical Import Class

I would like to create an Import Object that is able to import data from different types of files.

What are the typical Properties and Methods (attributes and operations) that would make-up such an object? This is a web application.
0
IntelligentResponse
Asked:
IntelligentResponse
  • 3
  • 3
2 Solutions
 
quizwedgeCommented:
It really depends on what you want to use the files for, but I'd recommend at least the following:
File Name
File Extension
Mime Type
File Content
0
 
quizwedgeCommented:
Forgot the second part of the question. For methods, you'll want to have at least the following:
New / Constructor
Read File / Import
Write File / Save

You may also want a Display method that spits out any HTML needed for the file contents to be displayed properly. Such as changing tags to <strong>, etc.
0
 
IntelligentResponseAuthor Commented:
Thanks, this looks good. What do you mean by "New / Constructor"?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
quizwedgeCommented:
Whenever you create a variable as a new ImportClass you'll have to use a constructor method. In VB it's typically called New(). My C# is rusty enough and my brain tired enough that I can't remember if New() is the convention C# uses. Basically you can set any of the private variables you need there. Let me know if you need more help. My brain is pretty shot right now.
0
 
IntelligentResponseAuthor Commented:
Not a problem, but I am very familiar with the Constructor and instantiation of an object, was not sure why you had it in the list. I see now why you included it, thanks.
0
 
IntelligentResponseAuthor Commented:
Thanks for a direct answer to my question, appreciate it.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now